@@ -338,54 +338,6 @@ When the configuration values are dynamic, you can use the PHP configuration
338338file to execute your own logic. In addition, you can define your own services
339339to load configuration from databases and web services.
340340
341- Directory Loading
342- ~~~~~~~~~~~~~~~~~
343-
344- Splitting configuration into lots of smaller files can rapidly become cumbersome
345- when importing those files from the main configuration file. Avoid these problems
346- by loading an entire directory:
347-
348- .. configuration-block ::
349-
350- .. code-block :: yaml
351-
352- # app/config/config.yml
353- imports :
354- - { resource: 'bundles/' }
355- - { resource: 'services/' }
356-
357- # ...
358-
359- .. code-block :: xml
360-
361- <!-- app/config/config.xml -->
362- <?xml version =" 1.0" encoding =" UTF-8" ?>
363- <container xmlns =" http://symfony.com/schema/dic/services"
364- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
365- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
366- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
367-
368- <imports >
369- <import resource =" bundles/" />
370- <import resource =" services/" />
371- </imports >
372-
373- <!-- ... -->
374- </container >
375-
376- .. code-block :: php
377-
378- // app/config/config.php
379- $loader->import('bundles/');
380- $loader->import('services/');
381-
382- // ...
383-
384-
385- The Config component will recursively look in the ``bundles/ `` and ``services/ ``
386- directories and it will load any supported file format (``.yml ``, ``.xml ``,
387- ``.php ``, ``.ini ``).
388-
389341Global Configuration Files
390342~~~~~~~~~~~~~~~~~~~~~~~~~~
391343
0 commit comments