diff --git a/components/event_dispatcher/introduction.rst b/components/event_dispatcher/introduction.rst index 573061b0556..e3f8da1916f 100644 --- a/components/event_dispatcher/introduction.rst +++ b/components/event_dispatcher/introduction.rst @@ -212,14 +212,14 @@ instance of ``Symfony\Component\HttpKernel\Event\FilterResponseEvent``:: and the :doc:`DependencyInjection component `, you can use the - :class:`Symfony\\Component\\HttpKernel\\DependencyInjection\\RegisterListenersPass` - from the HttpKernel component to tag services as event listeners:: + :class:`Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass` + to tag services as event listeners:: use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; use Symfony\Component\DependencyInjection\Reference; - use Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass; + use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass; $containerBuilder = new ContainerBuilder(new ParameterBag()); $containerBuilder->addCompilerPass(new RegisterListenersPass());