$16 GRAYBYTE WORDPRESS FILE MANAGER $56

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php54/usr/share/pear/Symfony/Component/ClassLoader/

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

/**
 * Checks that the class is actually declared in the included file.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class DebugUniversalClassLoader extends UniversalClassLoader
{
    /**
     * Replaces all regular UniversalClassLoader instances by a DebugUniversalClassLoader ones.
     */
    public static function enable()
    {
        if (!is_array($functions = spl_autoload_functions())) {
            return;
        }

        foreach ($functions as $function) {
            spl_autoload_unregister($function);
        }

        foreach ($functions as $function) {
            if (is_array($function) && $function[0] instanceof UniversalClassLoader) {
                $loader = new static();
                $loader->registerNamespaceFallbacks($function[0]->getNamespaceFallbacks());
                $loader->registerPrefixFallbacks($function[0]->getPrefixFallbacks());
                $loader->registerNamespaces($function[0]->getNamespaces());
                $loader->registerPrefixes($function[0]->getPrefixes());
                $loader->useIncludePath($function[0]->getUseIncludePath());

                $function[0] = $loader;
            }

            spl_autoload_register($function);
        }
    }

    /**
     * {@inheritDoc}
     */
    public function loadClass($class)
    {
        if ($file = $this->findFile($class)) {
            require $file;

            if (!class_exists($class, false) && !interface_exists($class, false) && (!function_exists('trait_exists') || !trait_exists($class, false))) {
                throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". The file was found but the class was not in it, the class name or namespace probably has a typo.', $class, $file));
            }
        }
    }
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


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

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF