Use more accurate variable name

This commit is contained in:
Grégoire Pineau 2014-03-09 12:57:49 +01:00 committed by Fabien Potencier
parent 535d6c8096
commit 9e2aa9fced

View File

@ -58,10 +58,10 @@ class Firewall implements EventSubscriberInterface
} }
// register listeners for this firewall // register listeners for this firewall
list($listeners, $exception) = $this->map->getListeners($event->getRequest()); list($listeners, $exceptionListener) = $this->map->getListeners($event->getRequest());
if (null !== $exception) { if (null !== $exceptionListener) {
$this->exceptionListeners[$event->getRequest()] = $exception; $this->exceptionListeners[$event->getRequest()] = $exceptionListener;
$exception->register($this->dispatcher); $exceptionListener->register($this->dispatcher);
} }
// initiate the listener chain // initiate the listener chain