namespace Symfony\Component\DependencyInjection\Loader;
-use Symfony\Component\Config\Resource\DirectoryResource;
-
/**
* DirectoryLoader is a recursive loader to go through directories.
*
{
$file = rtrim($file, '/');
$path = $this->locator->locate($file);
- $this->container->addResource(new DirectoryResource($path));
+ $this->container->fileExists($path, false);
foreach (scandir($path) as $dir) {
if ('.' !== $dir[0]) {
return true;
}
- return null === $type && is_string($resource) && '/' === substr($resource, -1);
+ return null === $type && \is_string($resource) && '/' === substr($resource, -1);
}
}