SILENT KILLERPanel

Current Path: > > opt > cloudlinux > alt-php53 > > root > usr > share > pear > Symfony > > Component > ClassLoader


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/alt-php53//root/usr/share/pear/Symfony//Component/ClassLoader

NameTypeSizeLast ModifiedActions
ApcClassLoader.php File 3755 bytes December 18 2019 11:20:40.
ApcUniversalClassLoader.php File 3059 bytes December 18 2019 11:20:40.
ClassCollectionLoader.php File 11785 bytes December 18 2019 11:20:40.
ClassLoader.php File 5250 bytes December 18 2019 11:20:40.
ClassMapGenerator.php File 3538 bytes December 18 2019 11:20:40.
DebugClassLoader.php File 3355 bytes December 18 2019 11:20:40.
DebugUniversalClassLoader.php File 2089 bytes December 18 2019 11:20:40.
MapClassLoader.php File 1533 bytes December 18 2019 11:20:40.
UniversalClassLoader.php File 8805 bytes December 18 2019 11:20:40.
WinCacheClassLoader.php File 3828 bytes December 18 2019 11:20:40.
XcacheClassLoader.php File 3497 bytes December 18 2019 11:20:40.
autoloader.php File 341 bytes December 18 2019 11:20:40.

Reading File: //opt/cloudlinux/alt-php53//root/usr/share/pear/Symfony//Component/ClassLoader/MapClassLoader.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\ClassLoader;

/**
 * A class loader that uses a mapping file to look up paths.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
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];
        }
    }
}

SILENT KILLER Tool