-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
EventDispatcheractionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)
Description
components/event_dispatcher/introduction.rst
find "Registering Event Listeners in the Service Container"
there are peace of code
// register the event dispatcher service
$containerBuilder->register(
'event_dispatcher',
'Symfony\Component\EventDispatcher\EventDispatcher'
);
this does not work because needs ContainerAwareEventDispatcher.
This code works.
$listener->addArgument($containerBuilder);
$this->_builder->setDefinition(
'event_dispatcher',
$listener
);
Metadata
Metadata
Assignees
Labels
EventDispatcheractionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)