PHP Class Neos\Flow\Session\Aspect\LazyLoadingAspect

Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$session Neos\Flow\Session\SessionInterface
$sessionOriginalInstances array
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Méthodes publiques

Méthode Description
callMethodOnOriginalSessionObject ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed Around advice, wrapping every method of a scope session object. It redirects all method calls to the session object once there is one.
initializeSession ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Before advice for all methods annotated with "@Flow\Session(autoStart=true)".
registerSessionInstance ( string $objectName, object $object ) : void Registers an object of scope session.

Method Details

callMethodOnOriginalSessionObject() public méthode

Around advice, wrapping every method of a scope session object. It redirects all method calls to the session object once there is one.
public callMethodOnOriginalSessionObject ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
Résultat mixed

initializeSession() public méthode

Those methods will trigger a session initialization if a session does not exist yet.
public initializeSession ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
Résultat void

registerSessionInstance() public méthode

Registers an object of scope session.
See also: Neos\Flow\ObjectManagement\ObjectManager
public registerSessionInstance ( string $objectName, object $object ) : void
$objectName string
$object object
Résultat void

Property Details

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$session protected_oe property

protected SessionInterface,Neos\Flow\Session $session
Résultat Neos\Flow\Session\SessionInterface

$sessionOriginalInstances protected_oe property

protected array $sessionOriginalInstances
Résultat array

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface