function GlobFileLoader::load
Same name in this branch
- 11.1.x vendor/symfony/routing/Loader/GlobFileLoader.php \Symfony\Component\Routing\Loader\GlobFileLoader::load()
File
-
vendor/
symfony/ dependency-injection/ Loader/ GlobFileLoader.php, line 21
Class
- GlobFileLoader
- GlobFileLoader loads files from a glob pattern.
Namespace
Symfony\Component\DependencyInjection\LoaderCode
public function load(mixed $resource, ?string $type = null) : mixed {
foreach ($this->glob($resource, false, $globResource) as $path => $info) {
$this->import($path);
}
$this->container
->addResource($globResource);
return null;
}