/home/techb158/ileadtechnology.com/SSM/vendor/symfony/routing/Loader
NameSizeModeActions
Configurator/-0755rm
schema/-0755rm
AnnotationClassLoader.php116770644editdlrm
AnnotationDirectoryLoader.php28360644editdlrm
AnnotationFileLoader.php43560644editdlrm
ClosureLoader.php10790644editdlrm
ContainerLoader.php9380644editdlrm
DirectoryLoader.php15140644editdlrm
GlobFileLoader.php10570644editdlrm
ObjectLoader.php30340644editdlrm
PhpFileLoader.php20270644editdlrm
XmlFileLoader.php173810644editdlrm
YamlFileLoader.php124580644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/symfony/routing/Loader/ClosureLoader.php (1079B)
* * 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 */ 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); } }