V
V
Vladislav2016-08-11 21:39:56
symfony
Vladislav, 2016-08-11 21:39:56

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

1 answer(s)
A
Anatoliy Lyovkin, 2016-08-11
@MrBikus

symfony.com/doc/current/bundles/extension.html#usi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question