From 22e8d41b9c0eba27cdc0337c19233c0180081e0d Mon Sep 17 00:00:00 2001 From: Anthon Pang Date: Wed, 3 Jul 2013 17:17:16 -0400 Subject: [PATCH] Alternate fix for #96; tested with symfony-standard v2.2.3 (and v2.3.1 with JMSDiExtraBundle and JMSSecurityExtraBundle dependencies restored) --- HttpKernel/ControllerInjectorsWarmer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HttpKernel/ControllerInjectorsWarmer.php b/HttpKernel/ControllerInjectorsWarmer.php index 05e8b3f..6d1ea91 100755 --- a/HttpKernel/ControllerInjectorsWarmer.php +++ b/HttpKernel/ControllerInjectorsWarmer.php @@ -34,6 +34,10 @@ public function warmUp($cacheDir) $classes = $this->findControllerClasses(); foreach ($classes as $class) { + if (class_exists($class, true)) { + continue; + } + $this->controllerResolver->createInjector($class); } }