You are browsing the documentation for Symfony 4.2 which is not maintained anymore.
Consider upgrading your projects to Symfony 5.3.
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.