Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be414e0

Browse filesBrowse files
committed
Removed the "Directory Loading" section because it doesn't work out of the box
1 parent da3e1d0 commit be414e0
Copy full SHA for be414e0

File tree

Expand file treeCollapse file tree

1 file changed

+0
-48
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-48
lines changed

‎cookbook/configuration/configuration_organization.rst

Copy file name to clipboardExpand all lines: cookbook/configuration/configuration_organization.rst
-48Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -338,54 +338,6 @@ When the configuration values are dynamic, you can use the PHP configuration
338338
file to execute your own logic. In addition, you can define your own services
339339
to 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-
389341
Global Configuration Files
390342
~~~~~~~~~~~~~~~~~~~~~~~~~~
391343

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.