1
0
Fork 0

Don't throw exception in the doDispatch method.

pull/2516/head
Max Gfeller 2013-12-19 08:47:55 +01:00
parent 421b09dc44
commit a12ed492ef
1 changed files with 0 additions and 4 deletions

View File

@ -118,10 +118,6 @@ class EventDispatcher
{
$listeners = $this->getListeners($event);
if(sizeof($listeners) === 0) {
throw new \InvalidArgumentException(sprintf('Script "%s" does not exist', $event->getName()));
}
foreach ($listeners as $callable) {
if (!is_string($callable) && is_callable($callable)) {
call_user_func($callable, $event);