From 222e58b4acf4629c88d19eeff665ad6e7b263b53 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 18 Sep 2012 12:47:36 +0200 Subject: [PATCH] fixed typo --- src/Silex/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {