public function WrappedListener::__invoke in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Debug/WrappedListener.php \Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke()
File
- vendor/
symfony/ event-dispatcher/ Debug/ WrappedListener.php, line 55
Class
- WrappedListener
- @author Fabien Potencier <fabien@symfony.com>
Namespace
Symfony\Component\EventDispatcher\DebugCode
public function __invoke(Event $event, $eventName, EventDispatcherInterface $dispatcher) {
$this->called = true;
$e = $this->stopwatch
->start($this->name, 'event_listener');
call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
if ($e
->isStarted()) {
$e
->stop();
}
if ($event
->isPropagationStopped()) {
$this->stoppedPropagation = true;
}
}