X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/symfony/routing/Loader
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
symfony
/
routing
/
Loader
/
📁
..
📄
AnnotationClassLoader.php
(11.44 KB)
📄
AnnotationDirectoryLoader.php
(2.77 KB)
📄
AnnotationFileLoader.php
(4.25 KB)
📄
ClosureLoader.php
(1.05 KB)
📁
Configurator
📄
ContainerLoader.php
(938 B)
📄
DirectoryLoader.php
(1.48 KB)
📄
GlobFileLoader.php
(1.03 KB)
📄
ObjectLoader.php
(2.92 KB)
📄
PhpFileLoader.php
(2.27 KB)
📄
XmlFileLoader.php
(15.84 KB)
📄
YamlFileLoader.php
(10.49 KB)
📁
schema
Editing: ClosureLoader.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Loader; use Symfony\Component\Config\Loader\Loader; use Symfony\Component\Routing\RouteCollection; /** * ClosureLoader loads routes from a PHP closure. * * The Closure must return a RouteCollection instance. * * @author Fabien Potencier <fabien@symfony.com> */ class ClosureLoader extends Loader { /** * Loads a Closure. * * @param \Closure $closure A Closure * @param string|null $type The resource type * * @return RouteCollection A RouteCollection instance */ public function load($closure, string $type = null) { return $closure(); } /** * {@inheritdoc} */ public function supports($resource, string $type = null) { return $resource instanceof \Closure && (!$type || 'closure' === $type); } }
Upload File
Create Folder