@@ -106,7 +106,8 @@ method::
106106 }
107107
108108Then, make sure that each ``config.yml `` file loads the rest of the configuration
109- files, including the common files:
109+ files, including the common files. For instance, this would be the imports
110+ needed for the ``app/config/dev/config.yml `` file:
110111
111112.. configuration-block ::
112113
@@ -147,83 +148,6 @@ files, including the common files:
147148
148149 // ...
149150
150- .. configuration-block ::
151-
152- .. code-block :: yaml
153-
154- # app/config/prod/config.yml
155- imports :
156- - { resource: '../common/config.yml' }
157- - { resource: 'parameters.yml' }
158- - { resource: 'security.yml' }
159-
160- # ...
161-
162- .. code-block :: xml
163-
164- <!-- app/config/prod/config.xml -->
165- <?xml version =" 1.0" encoding =" UTF-8" ?>
166- <container xmlns =" http://symfony.com/schema/dic/services"
167- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
168- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
169- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
170-
171- <imports >
172- <import resource =" ../common/config.xml" />
173- <import resource =" parameters.xml" />
174- <import resource =" security.xml" />
175- </imports >
176-
177- <!-- ... -->
178- </container >
179-
180- <!-- ... -->
181-
182- .. code-block :: php
183-
184- // app/config/prod/config.php
185- $loader->import('../common/config.php');
186- $loader->import('parameters.php');
187- $loader->import('security.php');
188-
189- // ...
190-
191- .. configuration-block ::
192-
193- .. code-block :: yaml
194-
195- # app/config/config.yml
196- imports :
197- - { resource: 'parameters.yml' }
198- - { resource: 'security.yml' }
199-
200- # ...
201-
202- .. code-block :: xml
203-
204- <!-- app/config/config.xml -->
205- <?xml version =" 1.0" encoding =" UTF-8" ?>
206- <container xmlns =" http://symfony.com/schema/dic/services"
207- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
208- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
209- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
210-
211- <imports >
212- <import resource =" parameters.xml" />
213- <import resource =" security.xml" />
214- </imports >
215-
216- <!-- ... -->
217- </container >
218-
219- .. code-block :: php
220-
221- // app/config/config.php
222- $loader->import('parameters.php');
223- $loader->import('security.php');
224-
225- // ...
226-
227151 Semantic Configuration Files
228152----------------------------
229153
0 commit comments