Property | Type | Description | |
---|---|---|---|
$currentAccountIdentifier | string | ||
$enabled | boolean | ||
$eventContext | array |
If the stack is empty, the events are created top-level. | |
$eventRepository | |||
$lastGeneratedEvent | a reference to the last-generated event |
Method | Description | |
---|---|---|
add ( |
Add the passed event (which has been generated by generate()) to persistence. | |
emit ( string $eventType, array $data, string $eventClassName = Event::class ) : |
Convenience method for generating an event and directly adding it afterwards to persistence. | |
generate ( string $eventType, array $data, string $eventClassName = Event::class ) : |
Generates a new event, without persisting it yet. | |
isEnabled ( ) : boolean | ||
popContext ( ) : void | Remove an element from the context stack. Is the reverse operation to pushContext(). | |
pushContext ( ) : void | Push the last-generated event onto the context, nesting all further generated events underneath the top-level one. | |
setCurrentAccountIdentifier ( string $accountIdentifier ) : void | Set the current account identifier |
Method | Description | |
---|---|---|
getCurrentContext ( ) : |
The current context-event or NULL if none exists currently. |
protected getCurrentContext ( ) : |
||
return |
public popContext ( ) : void | ||
return | void |
public pushContext ( ) : void | ||
return | void |
public setCurrentAccountIdentifier ( string $accountIdentifier ) : void | ||
$accountIdentifier | string | |
return | void |
protected string $currentAccountIdentifier | ||
return | string |
protected array |
||
return | array |
protected EventRepository,Neos\Neos\EventLog\Domain\Repository $eventRepository | ||
return |