$40 GRAYBYTE WORDPRESS FILE MANAGER $86

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/php54/usr/share/pear/Symfony/Component/ClassLoader/

HOME
Current File : /opt/alt/php54/usr/share/pear/Symfony/Component/ClassLoader//MapClassLoader.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\ClassLoader;

/**
 * A class loader that uses a mapping file to look up paths.
 *
 * @author Fabien Potencier <[email protected]>
 */
class MapClassLoader
{
    private $map = array();

    /**
     * Constructor.
     *
     * @param array $map A map where keys are classes and values the absolute file path
     */
    public function __construct(array $map)
    {
        $this->map = $map;
    }

    /**
     * Registers this instance as an autoloader.
     *
     * @param Boolean $prepend Whether to prepend the autoloader or not
     */
    public function register($prepend = false)
    {
        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
    }

    /**
     * Loads the given class or interface.
     *
     * @param string $class The name of the class
     */
    public function loadClass($class)
    {
        if (isset($this->map[$class])) {
            require $this->map[$class];
        }
    }

    /**
     * Finds the path to the file where the class is defined.
     *
     * @param string $class The name of the class
     *
     * @return string|null The path, if found
     */
    public function findFile($class)
    {
        if (isset($this->map[$class])) {
            return $this->map[$class];
        }
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
ApcClassLoader.php
3.667 KB
18 Dec 2019 11.22 AM
root / root
0644
ApcUniversalClassLoader.php
2.987 KB
18 Dec 2019 11.22 AM
root / root
0644
ClassCollectionLoader.php
11.509 KB
18 Dec 2019 11.22 AM
root / root
0644
ClassLoader.php
5.127 KB
18 Dec 2019 11.22 AM
root / root
0644
ClassMapGenerator.php
3.455 KB
18 Dec 2019 11.22 AM
root / root
0644
DebugClassLoader.php
3.276 KB
18 Dec 2019 11.22 AM
root / root
0644
DebugUniversalClassLoader.php
2.04 KB
18 Dec 2019 11.22 AM
root / root
0644
MapClassLoader.php
1.497 KB
18 Dec 2019 11.22 AM
root / root
0644
UniversalClassLoader.php
8.599 KB
18 Dec 2019 11.22 AM
root / root
0644
WinCacheClassLoader.php
3.738 KB
18 Dec 2019 11.22 AM
root / root
0644
XcacheClassLoader.php
3.415 KB
18 Dec 2019 11.22 AM
root / root
0644
autoloader.php
0.333 KB
18 Dec 2019 11.22 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF