diff options
author | Jordi Boggiano <j.boggiano@seld.be> | 2011-05-05 19:02:52 +0200 |
---|---|---|
committer | Jordi Boggiano <j.boggiano@seld.be> | 2011-05-26 11:54:06 +0200 |
commit | e1c2da63b45a38c50baef1a3ab89938898160504 (patch) | |
tree | dd37038758e701bacccad7d577b6bfc1aaf94fa5 /Http | |
parent | 6b3a0ace240ef45f1a74792ca289d98241e4778f (diff) | |
download | symfony-security-e1c2da63b45a38c50baef1a3ab89938898160504.zip symfony-security-e1c2da63b45a38c50baef1a3ab89938898160504.tar.gz symfony-security-e1c2da63b45a38c50baef1a3ab89938898160504.tar.bz2 |
[EventDispatcher] Allow registration of arbitrary callbacks
This in effect removes the direct link between event name and the method name on the handler.
Any callback can be given as a handler and the event name becomes an arbitrary string. Allowing for easier namespacing (see next commit)
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/ExceptionListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index 4840a63..ce659de 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -59,7 +59,7 @@ class ExceptionListener */ public function register(EventDispatcherInterface $dispatcher) { - $dispatcher->addListener(Events::onCoreException, $this); + $dispatcher->addListener(CoreEvents::exception, array($this, 'core.exception')); } /** |