Method | Description | |
---|---|---|
clear ( ) | {@inheritDoc} | |
fromContainerBuildingCallback ( callable $sessionLoader ) : self | ||
get ( string $key, $default = null ) | {@inheritDoc} | |
has ( string $key ) : boolean | {@inheritDoc} | |
hasChanged ( ) : boolean | {@inheritDoc} | |
isEmpty ( ) : boolean | {@inheritDoc} | |
jsonSerialize ( ) | {@inheritDoc} | |
remove ( string $key ) | {@inheritDoc} | |
set ( string $key, $value ) | {@inheritDoc} |
Method | Description | |
---|---|---|
__construct ( ) | Instantiation via __construct is not allowed, use {@see LazySession::fromContainerBuildingCallback} instead | |
getRealSession ( ) : PSR7Sessions\Storageless\Session\SessionInterface | Get or initialize the session | |
loadSession ( ) : PSR7Sessions\Storageless\Session\SessionInterface | Type-safe wrapper that ensures that the given callback returns the expected type of object, when called |
public static fromContainerBuildingCallback ( callable $sessionLoader ) : self | ||
$sessionLoader | callable | |
return | self |