namespace Symfony\Component\EventDispatcher\Debug;
-use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
+use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\VarDumper\Caster\ClassStub;
/**
$this->called = false;
$this->stoppedPropagation = false;
- if (is_array($listener)) {
- $this->name = is_object($listener[0]) ? get_class($listener[0]) : $listener[0];
+ if (\is_array($listener)) {
+ $this->name = \is_object($listener[0]) ? \get_class($listener[0]) : $listener[0];
$this->pretty = $this->name.'::'.$listener[1];
} elseif ($listener instanceof \Closure) {
$this->pretty = $this->name = 'closure';
- } elseif (is_string($listener)) {
+ } elseif (\is_string($listener)) {
$this->pretty = $this->name = $listener;
} else {
- $this->name = get_class($listener);
+ $this->name = \get_class($listener);
$this->pretty = $this->name.'::__invoke';
}
$e = $this->stopwatch->start($this->name, 'event_listener');
- call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
+ \call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
if ($e->isStarted()) {
$e->stop();