Symfony 4 Services im extra Ordner / Autowire klappt nicht - PHP Flex is a composer plugin. Of course, in services.xml, we need to tell Symfony to pass in that new argument!
Symfony\Component\Console\Command Since Symfony2 and all third-party bundles configure and retrieve their services via the container, you can easily access them or even use them in your own services. That means, in ArticleController, instead of needing to say new MarkdownHelper(), we can autowire it: add … 1. TIPS! Refresh to make sure it still works. goldensona March 4 ... and use Alias to bring in each symfony app. Adding Autowiring Aliases
Configuring the Web Server Require inline alias# Branch aliases are great for aliasing main development lines. Other Server Configurations Symfony is compatible with other server configurations. If you use autowiring in your application, you don't have to make any change because you are already injecting the services instead of getting them via their public ID. Symfony Service Subscriber Alias Service.
Elasticsearch the right way in Symfony If you want to see all the services you can pass a --all option../bin/console debug:autowiring .
Symfony [name]_connection service where … Otherwise, you must update your application to mark services as public when they are meant to be accessed publicly.