Answer the question
In order to leave comments, you need to log in
How to use services.php instead of services.yml in Symfony3?
How to use services.php instead of services,yml in Symfony3?
The only thing I found in the dock is:
When Symfony initializes, it builds the service container using the application configuration (app/config/config.yml by default). The exact file that's loaded is dictated by the AppKernel::registerContainerConfiguration() method, which loads an environment-specific configuration file (eg config_dev.yml for the dev environment or config_prod.yml for prod).
If you change
imports:
- { resource: services.yml }
to
imports:
- { resource: services.php }
then of course an error pops up.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question