This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier 00d20ead28 feature #21270 [DependencyInjection] Use glob pattern to load config files (pierredup)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[DependencyInjection] Use glob pattern to load config files

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21173
| License       | MIT
| Doc PR        | -

This relates to #21173, but I'm not sure if it completely fixes the issue.

This allows to use a glob pattern to load config files, which makes the following possible:

```
# config.yml
imports:
    - { resource: "*.yml" }
    - { resource: "folder/*.yml" }
    - { resource: "/etc/myapp/*.{yml,xml}" }
```

It can also be used in a container extension, if a bundle uses a lot of configs:

```
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('*.yml');
$loader->load('routing/*');
```

Commits
-------

519180ef56 Use glob pattern to load config file
2017-02-14 19:46:56 +01:00
..
Asset Merge branch '3.2' 2017-01-02 12:33:09 -08:00
BrowserKit Merge branch '3.2' 2017-01-31 22:52:27 +01:00
Cache Merge branch '3.2' 2017-02-06 13:04:42 +01:00
ClassLoader Merge branch '3.2' 2017-01-21 09:10:26 -08:00
Config Merge branch '3.2' 2017-02-14 17:35:24 +01:00
Console Merge branch '3.2' 2017-02-14 17:35:24 +01:00
CssSelector Merge branch '3.2' 2017-01-02 12:33:09 -08:00
Debug [Debug] Support on methods 2017-02-12 20:33:56 +01:00
DependencyInjection feature #21270 [DependencyInjection] Use glob pattern to load config files (pierredup) 2017-02-14 19:46:56 +01:00
DomCrawler Merge branch '3.2' 2017-01-21 09:19:16 -08:00
Dotenv [Dotenv] added the component 2017-01-12 08:39:44 -08:00
EventDispatcher [DI][Config] Add & use ReflectionClassResource 2017-02-02 14:15:15 +01:00
ExpressionLanguage Merge branch '3.2' 2017-01-02 12:33:09 -08:00
Filesystem Merge branch '3.2' 2017-01-08 13:15:04 -08:00
Finder [DI] Add "psr4" service attribute for PSR4-based discovery and registration 2017-02-12 23:09:17 +01:00
Form minor #21090 Secure unserialize by restricting allowed classes when using PHP 7 (dbrumann) 2017-02-12 20:14:59 +01:00
HttpFoundation [Debug] Support on methods 2017-02-12 20:33:56 +01:00
HttpKernel minor #21090 Secure unserialize by restricting allowed classes when using PHP 7 (dbrumann) 2017-02-12 20:14:59 +01:00
Inflector Merge branch '3.2' 2017-01-02 12:33:09 -08:00
Intl Merge branch '3.2' 2017-01-27 18:39:08 -08:00
Ldap [LDAP] implemented LDAP entry rename for ExtLdap adapter 2017-01-13 14:07:40 +01:00
OptionsResolver Merge branch '3.2' 2017-01-02 12:33:09 -08:00
Process feature #21474 [Process] Accept command line arrays and per-run env vars, fixing signaling and escaping (nicolas-grekas) 2017-02-08 16:45:40 +01:00
PropertyAccess Merge branch '3.2' 2017-02-02 14:49:58 +01:00
PropertyInfo Merge branch '3.2' 2017-01-21 09:10:26 -08:00
Routing minor #21090 Secure unserialize by restricting allowed classes when using PHP 7 (dbrumann) 2017-02-12 20:14:59 +01:00
Security Merge branch '3.2' 2017-02-14 17:35:24 +01:00
Serializer [Serializer] Pass the context to AbstractObjectNormalizer::supportsDenormalization 2017-02-13 15:50:04 +01:00
Stopwatch Merge branch '3.2' 2017-01-02 12:33:09 -08:00
Templating Revert "fixed typo" 2017-01-21 08:37:26 -08:00
Translation Merge branch '3.2' 2017-02-14 17:35:24 +01:00
Validator Merge branch '3.2' 2017-02-14 17:35:24 +01:00
VarDumper Merge branch '3.2' 2017-02-14 17:35:24 +01:00
Workflow Merge branch '3.2' 2017-02-14 17:35:24 +01:00
Yaml [Yaml] Add tags support 2017-02-10 15:48:44 +01:00