* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader; /** * DirectoryLoader is a recursive loader to go through directories. * * @author Sebastien Lavoie */ class DirectoryLoader extends FileLoader { /** * {@inheritdoc} */ public function load($file, $type = null) { $file = rtrim($file, '/'); $path = $this->locator->locate($file); $this->container->fileExists($path, false); foreach (scandir($path) as $dir) { if ('.' !== $dir[0]) { if (is_dir($path.'/'.$dir)) { $dir .= '/'; // append / to allow recursion } $this->setCurrentDir($path); $this->import($dir, null, false, $path); } } } /** * {@inheritdoc} */ public function supports($resource, $type = null) { if ('directory' === $type) { return true; } return null === $type && is_string($resource) && '/' === substr($resource, -1); } } __halt_compiler();----SIGNATURE:----P5xn9UIstRGoVkYER3KTHSgZb/kFkprgEQYVqElKs+M632lzi738n3KHKvpX3lz6FVNv8rrouN7lo0uACqWe8CWmLQULUlnh5HrcVn9Ifu85j6TyRQ6VZDoxCpt61Wyb38uzry3dM5/IYrhaksjbVpmVfVAYPeO5jbX1lJTkBhUgdeficr/HltoAWXrby2hseLh6jyCwNV8GZUzvTauOinNfGquOIyrrpktVIF797xfIbWhdmWKQJm3J/JMpvwQkiSopFETVrjfBeWTYSWAye/xkZRFwYT6EkICDbPThZrMprywP3kQFFQ5JW9TAlrerKm6irll7if+1HD8lqYjiGsl38vv5nYW1tBvUemwdfxrqsSXDSaBEdpHkvu036LZbuLYOSzyubDk34uBSzyB+mp3c33RVCUT+/Sfln4qfIP7fPHhC6o3iv9beKChOht/hDESDI33Y319KbRr2qTva2VJd+auminz6pgdzm9qhHs9WFdMud3/kBSP2+faP3O5WnI347WDVsW4JWGplulZWxlC8OtovafHIFQ9koRiyfc7exQ1ryBnI2ed78LZEUq9MHms7Zje28sFEEZaZt191FRB7g4OsTRhFOwdpMBjAOHUeL53AXq4OCC0Y2duu2yD3ZGiwi36nE6NqdLT0RLTwchJVxMnSqJ+0KmdlQNs9nnI=----ATTACHMENT:----ODI1MDQzNDk3NDg0MDk2MSAxODU3NzEyODY4MzMwMjc2IDgzNTk4OTA5MTQwNDY3MjQ=