PHP Class Neos\Flow\Session\Aspect\LazyLoadingAspect

Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$session Neos\Flow\Session\SessionInterface
$sessionOriginalInstances array
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Public Methods

Method 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 method

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
return mixed

initializeSession() public method

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
return void

registerSessionInstance() public method

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

Property Details

$objectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$session protected property

protected SessionInterface,Neos\Flow\Session $session
return Neos\Flow\Session\SessionInterface

$sessionOriginalInstances protected property

protected array $sessionOriginalInstances
return array

$systemLogger protected property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
return Neos\Flow\Log\SystemLoggerInterface