Skip to content

Issue can't run #1

@gravataLonga

Description

@gravataLonga

PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The "Symfony\Component\Console\Application" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead. in /vendor/symfony/dependency-injection/Container.php:269 Stack trace: #0 vendor/symfony/dependency-injection/Container.php(225): Symfony\Component\DependencyInjection\Container->make() #1 vendor/symfony/dependency-injection/ContainerBuilder.php(555): Symfony\Component\DependencyInjection\Container->get() #2 /bin/bitbucket(34): Symfony\Component\DependencyInjection\ContainerBuilder->get() #3 {main} thrown in /vendor/symfony/dependency-injection/Container.php on line 269

The solution is only to put setPublic() here:
$container ->register(Application::class, Application::class) ->setArguments(['Bitbucket command line tool', '0.1']) ->setPublic(true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions