The LightMVC Auditor class logs aggregate events from a domain model.
package
|
Ascmvc\EventSourcing
|
Methods
EventLogger constructor.
__construct(\Ascmvc\AbstractApp $app, \Zend\EventManager\EventManagerInterface &$eventManager, array $logParams)
Arguments
$eventManager
\Zend\EventManager\EventManagerInterface
EventLogger destructor.
__destruct()
Initializes the EventLogger object.
initialize()
EventLogger listener method.
logEvent(\Zend\EventManager\EventInterface $event)
Arguments
$event
\Zend\EventManager\EventInterface
Properties
Contains an instance of the AbstractApp object.
app : \Ascmvc\AbstractApp
Contains an instance of EventManagerInterface.
eventManager : \Zend\EventManager\EventManagerInterface
Type(s)
\Zend\EventManager\EventManagerInterface
Contains an instance of EntityManager.
entityManager : \Doctrine\ORM\EntityManager
Type(s)
\Doctrine\ORM\EntityManager
Contains a string signifying the name of the entity that is to be used.
entityName : string
Contains an instance of EntityRepository.
entityRepository : \Doctrine\ORM\EntityRepository
Type(s)
\Doctrine\ORM\EntityRepository
Contains an array of logging parameters.
logParams : array