diff --git a/src/Silex/Application.php b/src/Silex/Application.php index aafe2e7ae..7463936f4 100644 --- a/src/Silex/Application.php +++ b/src/Silex/Application.php @@ -87,7 +87,7 @@ public function __construct() $this['dispatcher_class'] = 'Symfony\\Component\\EventDispatcher\\EventDispatcher'; $this['dispatcher'] = $this->share(function () use ($app) { - $dispatcher = new $this['dispatcher_class'](); + $dispatcher = new $app['dispatcher_class'](); $dispatcher->addSubscriber($app); $urlMatcher = new LazyUrlMatcher(function () use ($app) {