[SecurityBundle] display the correct class name on the deprecated notice

This commit is contained in:
Maxime Helias 2019-08-12 17:48:20 +02:00
parent cca22c4a20
commit 8e64b9a7ec

View File

@ -50,7 +50,7 @@ final class WrappedListener implements ListenerInterface
if (\is_callable($this->listener)) { if (\is_callable($this->listener)) {
($this->listener)($event); ($this->listener)($event);
} else { } else {
@trigger_error(sprintf('Calling the "%s::handle()" method from the firewall is deprecated since Symfony 4.3, implement "__invoke()" instead.', \get_class($this)), E_USER_DEPRECATED); @trigger_error(sprintf('Calling the "%s::handle()" method from the firewall is deprecated since Symfony 4.3, implement "__invoke()" instead.', \get_class($this->listener)), E_USER_DEPRECATED);
$this->listener->handle($event); $this->listener->handle($event);
} }
$this->time = microtime(true) - $startTime; $this->time = microtime(true) - $startTime;