*/ class GlobFileLoader extends FileLoader { /** * {@inheritdoc} */ 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; } /** * {@inheritdoc} */ public function supports(mixed $resource, string $type = null): bool { return 'glob' === $type; } }