Skip to content

Commit

Permalink
bug #5053 Correct RegisterListenersPass namespace (hacfi)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weaverryan committed Mar 14, 2015
2 parents c2f21e6 + 383de54 commit df9c3f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/event_dispatcher/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ instance of ``Symfony\Component\HttpKernel\Event\FilterResponseEvent``::
and the
:doc:`DependencyInjection component </components/dependency_injection/introduction>`,
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());
Expand Down

0 comments on commit df9c3f4

Please sign in to comment.