Autowire a standalone Symfony console app with the DI container
A standalone Symfony CLI tool gets brittle once you wire every command’s dependencies by hand. This shows how to configure the dependency injection container so it autowires services and registers new console commands for you.