You are browsing the Symfony 5.0 documentation, which changes significantly from Symfony 3.x. If your app doesn't use Symfony 5.0 yet, browse the Symfony 3.4 documentation.
The Container Aware Event Dispatcher
The Container Aware Event Dispatcher¶
ContainerAwareEventDispatcher was removed in Symfony 4.0. Use
EventDispatcher with closure-proxy injection instead.
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.