$74 GRAYBYTE WORDPRESS FILE MANAGER $66

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php53/usr/share/pear/Symfony/Component/Routing/Loader/

HOME
Current File : /opt/alt/php53/usr/share/pear/Symfony/Component/Routing/Loader//ClosureLoader.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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 <[email protected]>
 *
 * @api
 */
class ClosureLoader extends Loader
{
    /**
     * Loads a Closure.
     *
     * @param \Closure    $closure A Closure
     * @param string|null $type    The resource type
     *
     * @return RouteCollection A RouteCollection instance
     *
     * @api
     */
    public function load($closure, $type = null)
    {
        return call_user_func($closure);
    }

    /**
     * {@inheritdoc}
     *
     * @api
     */
    public function supports($resource, $type = null)
    {
        return $resource instanceof \Closure && (!$type || 'closure' === $type);
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.55 PM
root / root
0755
schema
--
3 Mar 2024 10.55 PM
root / root
0755
AnnotationClassLoader.php
7.637 KB
18 Dec 2019 11.20 AM
root / root
0644
AnnotationDirectoryLoader.php
2.25 KB
18 Dec 2019 11.20 AM
root / root
0644
AnnotationFileLoader.php
3.405 KB
18 Dec 2019 11.20 AM
root / root
0644
ClosureLoader.php
1.102 KB
18 Dec 2019 11.20 AM
root / root
0644
PhpFileLoader.php
1.458 KB
18 Dec 2019 11.20 AM
root / root
0644
XmlFileLoader.php
9.066 KB
18 Dec 2019 11.20 AM
root / root
0644
YamlFileLoader.php
8.079 KB
18 Dec 2019 11.20 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF