Skip to content

Commit df9c3f4

Browse files
committed
bug #5053 Correct RegisterListenersPass namespace (hacfi)
This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #5053). Discussion ---------- Correct RegisterListenersPass namespace See symfony/symfony#9792 Commits ------- 383de54 Remove unnecessary component reference 7575495 Correct RegisterListenersPass namespace
2 parents c2f21e6 + 383de54 commit df9c3f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/event_dispatcher/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ instance of ``Symfony\Component\HttpKernel\Event\FilterResponseEvent``::
212212
and the
213213
:doc:`DependencyInjection component </components/dependency_injection/introduction>`,
214214
you can use the
215-
:class:`Symfony\\Component\\HttpKernel\\DependencyInjection\\RegisterListenersPass`
216-
from the HttpKernel component to tag services as event listeners::
215+
:class:`Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass`
216+
to tag services as event listeners::
217217

218218
use Symfony\Component\DependencyInjection\ContainerBuilder;
219219
use Symfony\Component\DependencyInjection\Definition;
220220
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
221221
use Symfony\Component\DependencyInjection\Reference;
222-
use Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass;
222+
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
223223

224224
$containerBuilder = new ContainerBuilder(new ParameterBag());
225225
$containerBuilder->addCompilerPass(new RegisterListenersPass());

0 commit comments

Comments
 (0)