Neos\Neos\EventLog\Domain\Service\EventEmittingService::popContext PHP Method

popContext() public method

Remove an element from the context stack. Is the reverse operation to pushContext().
public popContext ( ) : void
return void
    public function popContext()
    {
        if (count($this->eventContext) > 0) {
            array_pop($this->eventContext);
        } else {
            throw new \InvalidArgumentException('popContext() can only be called if the context has been pushed beforehand.', 1415354224);
        }
    }