diff --git a/src/Sulu/Bundle/CoreBundle/DependencyInjection/Compiler/RequestAnalyzerCompilerPass.php b/src/Sulu/Bundle/CoreBundle/DependencyInjection/Compiler/RequestAnalyzerCompilerPass.php
index <HASH>..<HASH> 100644
--- a/src/Sulu/Bundle/CoreBundle/DependencyInjection/Compiler/RequestAnalyzerCompilerPass.php
+++ b/src/Sulu/Bundle/CoreBundle/DependencyInjection/Compiler/RequestAnalyzerCompilerPass.php
@@ -55,7 +55,7 @@ class RequestAnalyzerCompilerPass implements CompilerPassInterface
             );
 
             // add listener to event dispatcher
-            $eventDispatcher = $container->getDefinition('event_dispatcher');
+            $eventDispatcher = $container->findDefinition('event_dispatcher');
             $eventDispatcher->addMethodCall(
                 'addListenerService',
                 array(
changed getDefinition to findDefinition