privates['console.command.event_dispatcher_debug'] = $instance = new \Symfony\Bundle\FrameworkBundle\Command\EventDispatcherDebugCommand(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), [ 'event_dispatcher' => ['services', 'event_dispatcher', 'getEventDispatcherService', false], ], [ 'event_dispatcher' => '?', ])); $instance->setName('debug:event-dispatcher'); $instance->setDescription('Display configured listeners for an application'); return $instance; } }