From b77465103bd49ac41dc6aa4299dec7068e620144 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 24 Dec 2014 00:01:05 +0100 Subject: [PATCH] unify event subscriber usages --- components/event_dispatcher/container_aware_dispatcher.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/event_dispatcher/container_aware_dispatcher.rst b/components/event_dispatcher/container_aware_dispatcher.rst index 3c4c6b91398..82a502f582b 100644 --- a/components/event_dispatcher/container_aware_dispatcher.rst +++ b/components/event_dispatcher/container_aware_dispatcher.rst @@ -53,7 +53,7 @@ method where the ``$callback`` is an array of ``array($serviceId, $methodName)`` Adding Subscriber Services ~~~~~~~~~~~~~~~~~~~~~~~~~~ -``EventSubscribers`` can be added using the +Event subscribers can be added using the :method:`Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher::addSubscriberService` method where the first argument is the service ID of the subscriber service, and the second argument is the service's class name (which must implement @@ -64,7 +64,7 @@ and the second argument is the service's class name (which must implement 'StoreSubscriber' ); -The ``EventSubscriberInterface`` will be exactly as you would expect:: +The ``EventSubscriberInterface`` is exactly as you would expect:: use Symfony\Component\EventDispatcher\EventSubscriberInterface; // ...