Skip to content

Symfony/Console requires you to set 'event_dispatcher' service, which is not documented anywhere #61157

@janopae

Description

@janopae

I just installed Console (7.3) and want to run a simple command. But it fails at this line of code:
https://github.com/symfony/symfony/blame/d07652647d90568dbbff1dff18c591caf226a23f/src/Symfony/Bundle/FrameworkBundle/Console/Application.php#L75

In Container.php line 255:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
You have requested a non-existent service "event_dispatcher".
Exception trace:
at vendor/symfony/dependency-injection/Container.php:255
Symfony\Component\DependencyInjection\Container::make() at vendor/symfony/dependency-injection/Container.php:203
Symfony\Component\DependencyInjection\Container->get() at vendor/symfony/framework-bundle/Console/Application.php:75
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at vendor/symfony/console/Application.php:192
Symfony\Component\Console\Application->run() at bin/console:42

Simply adding installing the Symfony EventDispatcher, but this alone won't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy