4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Loader;
15 * GlobFileLoader loads files from a glob pattern.
17 * @author Nicolas Grekas <p@tchwork.com>
19 class GlobFileLoader extends FileLoader
24 public function load($resource, $type = null)
26 foreach ($this->glob($resource, false, $globResource) as $path => $info) {
30 $this->container->addResource($globResource);
36 public function supports($resource, $type = null)
38 return 'glob' === $type;