Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Loader / DirectoryLoader.php
index ffb8853011134f45a846cde72e5d3014c07cbc99..a57cac3b5ee9977f946d0cfc97f817cd3b5ae0c5 100644 (file)
@@ -11,8 +11,6 @@
 
 namespace Symfony\Component\DependencyInjection\Loader;
 
-use Symfony\Component\Config\Resource\DirectoryResource;
-
 /**
  * DirectoryLoader is a recursive loader to go through directories.
  *
@@ -27,7 +25,7 @@ class DirectoryLoader extends FileLoader
     {
         $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]) {
@@ -51,6 +49,6 @@ class DirectoryLoader extends FileLoader
             return true;
         }
 
-        return null === $type && is_string($resource) && '/' === substr($resource, -1);
+        return null === $type && \is_string($resource) && '/' === substr($resource, -1);
     }
 }