class LoggingAspect (View source)

An aspect which centralizes the logging of important session actions.

Properties

protected LoggerInterface $logger

Methods

void
injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

mixed
logStart(JoinPointInterface $joinPoint)

Logs calls of start()

mixed
logResume(JoinPointInterface $joinPoint)

Logs calls of resume()

mixed
logDestroy(JoinPointInterface $joinPoint)

Logs calls of destroy()

mixed
logRenewId(JoinPointInterface $joinPoint)

Logs calls of renewId()

void
logCollectGarbage(JoinPointInterface $joinPoint)

Logs calls of collectGarbage()

string
getClassName(JoinPointInterface $joinPoint)

Determines the short or full class name of the session implementation

Details

void injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

Parameters

LoggerInterface $logger

Return Value

void

mixed logStart(JoinPointInterface $joinPoint)

Logs calls of start()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

mixed logResume(JoinPointInterface $joinPoint)

Logs calls of resume()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

mixed logDestroy(JoinPointInterface $joinPoint)

Logs calls of destroy()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

mixed logRenewId(JoinPointInterface $joinPoint)

Logs calls of renewId()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

void logCollectGarbage(JoinPointInterface $joinPoint)

Logs calls of collectGarbage()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

void

protected string getClassName(JoinPointInterface $joinPoint)

Determines the short or full class name of the session implementation

Parameters

JoinPointInterface $joinPoint

Return Value

string