@@ -181,6 +181,48 @@ The ``imports`` key works a lot like the PHP ``include()`` function: the content
181181``parameters.yml ``, ``security.yml `` and ``services.yml `` are read and loaded. You
182182can also load XML files or PHP files.
183183
184+ .. tip ::
185+
186+ If your application uses unconventional file extensions (for example, your
187+ YAML files have a ``.res `` extension) you can set the file type explicitly
188+ with the ``type `` option:
189+
190+ .. configuration-block ::
191+
192+ .. code-block :: yaml
193+
194+ # app/config/config.yml
195+ imports :
196+ - { resource: parameters.res, type: yml }
197+ # ...
198+
199+ .. code-block :: xml
200+
201+ <!-- app/config/config.xml -->
202+ <?xml version =" 1.0" encoding =" UTF-8" ?>
203+ <container xmlns =" http://symfony.com/schema/dic/services"
204+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
205+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
206+ xmlns : twig =" http://symfony.com/schema/dic/twig"
207+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
208+ http://symfony.com/schema/dic/services/services-1.0.xsd
209+ http://symfony.com/schema/dic/symfony
210+ http://symfony.com/schema/dic/symfony/symfony-1.0.xsd
211+ http://symfony.com/schema/dic/twig
212+ http://symfony.com/schema/dic/twig/twig-1.0.xsd" >
213+
214+ <imports >
215+ <import resource =" parameters.res" type =" yml" />
216+ <!-- ... -->
217+ </imports >
218+ </container >
219+
220+ .. code-block :: php
221+
222+ // app/config/config.php
223+ $this->import('parameters.res', 'yml');
224+ // ...
225+
184226 .. _config-parameter-intro :
185227
186228The parameters Key: Parameters (Variables)
0 commit comments