Skip to content

Commit caa8a5d

Browse files
committed
minor #6328 Update extension.rst - added caution box for people trying to remove the default file with services definitions (Pavel Jurecka)
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #6328). Discussion ---------- Update extension.rst - added caution box for people trying to remove the default file with services definitions Following steps from the original article isn't enough, because config.yml still tries to import services.yml from the original location. Commits ------- 8369fe5 Update extension.rst - added caution box for people trying to remove the default file with services definitions
2 parents dc645aa + 8369fe5 commit caa8a5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbook/bundles/extension.rst

+6
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ Other available loaders are the ``YamlFileLoader``, ``PhpFileLoader`` and
113113
The ``IniFileLoader`` can only be used to load parameters and it can only
114114
load them as strings.
115115

116+
.. caution::
117+
118+
If you removed the default file with services definitions (i.e.
119+
``app/config/services.yml``), make sure to also remove it from the
120+
``imports`` key in ``app/config/config.yml``.
121+
116122
Using Configuration to Change the Services
117123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118124

0 commit comments

Comments
 (0)