-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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);