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 (security) logger based on PSR-3.

void
logStart(JoinPointInterface $joinPoint)

Logs calls of start()

void
logResume(JoinPointInterface $joinPoint)

Logs calls of resume()

void
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 (security) logger based on PSR-3.

Parameters

LoggerInterface $logger

Return Value

void

void logStart(JoinPointInterface $joinPoint)

Logs calls of start()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

void

void logResume(JoinPointInterface $joinPoint)

Logs calls of resume()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

void

void logDestroy(JoinPointInterface $joinPoint)

Logs calls of destroy()

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

void

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