Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <[email protected]>
- * Jordi Boggiano <[email protected]>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Composer\Autoload;
- /**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- * $lQjvwcPzsz = new \Composer\Autoload\ClassLoader();
- *
- * // register classes with namespaces
- * $lQjvwcPzsz->RCyJReVBve('Symfony\Component', __DIR__.'/component');
- * $lQjvwcPzsz->RCyJReVBve('Symfony', __DIR__.'/framework');
- *
- * // activate the autoloader
- * $lQjvwcPzsz->ssTLFPpvyC();
- *
- * // to enable searching the include path (eg. for PEAR packages)
- * $lQjvwcPzsz->ApPexAspci(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier <[email protected]>
- * @author Jordi Boggiano <[email protected]>
- * @see http://www.php-fig.org/psr/psr-0/
- * @see http://www.php-fig.org/psr/psr-4/
- */
- class ClassLoader
- {
- // PSR-4
- private $vHekWJZkAhm = array();
- private $KPAsvYlXOzxz = array();
- private $uVcjicqqaiZ = array();
- // PSR-0
- private $DOtPlhBchFg = array();
- private $jSactyUAzVW = array();
- private $KlyFDYqHmDXV = false;
- private $CHNAsTExwXZ = array();
- private $CHNAsTExwXZAuthoritative = false;
- public function RoLlVQtebu()
- {
- if (!empty($zCLrnVItjNM>prefixesPsr0)) {
- return call_user_func_array('array_merge', $zCLrnVItjNM>prefixesPsr0);
- }
- return array();
- }
- public function eEMGPdIkIBNu()
- {
- return $zCLrnVItjNM>prefixDirsPsr4;
- }
- public function bQAthgPIcU()
- {
- return $zCLrnVItjNM>fallbackDirsPsr0;
- }
- public function iyZfnoQmXVF()
- {
- return $zCLrnVItjNM>fallbackDirsPsr4;
- }
- public function YwccXeSSW()
- {
- return $zCLrnVItjNM>classMap;
- }
- /**
- * @param array $CHNAsTExwXZ Class to filename map
- */
- public function QjaQmjzyelBd(array $CHNAsTExwXZ)
- {
- if ($zCLrnVItjNM>classMap) {
- $zCLrnVItjNM>classMap = array_merge($zCLrnVItjNM>classMap, $CHNAsTExwXZ);
- } else {
- $zCLrnVItjNM>classMap = $CHNAsTExwXZ;
- }
- }
- /**
- * Registers a set of PSR-0 directories for a given prefix, either
- * appending or prepending to the ones previously set for this prefix.
- *
- * @param string $YuyWtVIzqUv The prefix
- * @param array|string $SuaIDTCvf The PSR-0 root directories
- * @param bool $lfUjeYqQpf Whether to prepend the directories
- */
- public function RCyJReVBve($YuyWtVIzqUv, $SuaIDTCvf, $lfUjeYqQpf = false)
- {
- if (!$YuyWtVIzqUv) {
- if ($lfUjeYqQpf) {
- $zCLrnVItjNM>fallbackDirsPsr0 = array_merge(
- (array) $SuaIDTCvf,
- $zCLrnVItjNM>fallbackDirsPsr0
- );
- } else {
- $zCLrnVItjNM>fallbackDirsPsr0 = array_merge(
- $zCLrnVItjNM>fallbackDirsPsr0,
- (array) $SuaIDTCvf
- );
- }
- return;
- }
- $RAPwKwgRhsT = $YuyWtVIzqUv[0];
- if (!iseFYnIfEfl($zCLrnVItjNM>prefixesPsr0[$RAPwKwgRhsT][$YuyWtVIzqUv])) {
- $zCLrnVItjNM>prefixesPsr0[$RAPwKwgRhsT][$YuyWtVIzqUv] = (array) $SuaIDTCvf;
- return;
- }
- if ($lfUjeYqQpf) {
- $zCLrnVItjNM>prefixesPsr0[$RAPwKwgRhsT][$YuyWtVIzqUv] = array_merge(
- (array) $SuaIDTCvf,
- $zCLrnVItjNM>prefixesPsr0[$RAPwKwgRhsT][$YuyWtVIzqUv]
- );
- } else {
- $zCLrnVItjNM>prefixesPsr0[$RAPwKwgRhsT][$YuyWtVIzqUv] = array_merge(
- $zCLrnVItjNM>prefixesPsr0[$RAPwKwgRhsT][$YuyWtVIzqUv],
- (array) $SuaIDTCvf
- );
- }
- }
- /**
- * Registers a set of PSR-4 directories for a given namespace, either
- * appending or prepending to the ones previously set for this namespace.
- *
- * @param string $YuyWtVIzqUv The prefix/namespace, with trailing '\\'
- * @param array|string $SuaIDTCvf The PSR-4 base directories
- * @param bool $lfUjeYqQpf Whether to prepend the directories
- *
- * @throws \InvalidArgumentException
- */
- public function lMmOeWwxrgD($YuyWtVIzqUv, $SuaIDTCvf, $lfUjeYqQpf = false)
- {
- if (!$YuyWtVIzqUv) {
- // Register directories for the root namespace.
- if ($lfUjeYqQpf) {
- $zCLrnVItjNM>fallbackDirsPsr4 = array_merge(
- (array) $SuaIDTCvf,
- $zCLrnVItjNM>fallbackDirsPsr4
- );
- } else {
- $zCLrnVItjNM>fallbackDirsPsr4 = array_merge(
- $zCLrnVItjNM>fallbackDirsPsr4,
- (array) $SuaIDTCvf
- );
- }
- } elseif (!iseFYnIfEfl($zCLrnVItjNM>prefixDirsPsr4[$YuyWtVIzqUv])) {
- // Register directories for a new namespace.
- $bHPlCqknbwr = strlen($YuyWtVIzqUv);
- if ('\\' !== $YuyWtVIzqUv[$bHPlCqknbwr - 1]) {
- throw new \InvalidArgumentException("\x41\40\x6e\157\x6e\55\x65\155\x70\164\x79\40\x50\123\x52\55\x34\40\x70\162\x65\146\x69\170\x20\155\x75\163\x74\40\x65\156\x64\40\x77\151\x74\150\x20\141\x20\156\x61\155\x65\163\x70\141\x63\145\x20\163\x65\160\x61\162\x61\164\x6f\162\x2e");
- }
- $zCLrnVItjNM>prefixLengthsPsr4[$YuyWtVIzqUv[0]][$YuyWtVIzqUv] = $bHPlCqknbwr;
- $zCLrnVItjNM>prefixDirsPsr4[$YuyWtVIzqUv] = (array) $SuaIDTCvf;
- } elseif ($lfUjeYqQpf) {
- // Prepend directories for an already registered namespace.
- $zCLrnVItjNM>prefixDirsPsr4[$YuyWtVIzqUv] = array_merge(
- (array) $SuaIDTCvf,
- $zCLrnVItjNM>prefixDirsPsr4[$YuyWtVIzqUv]
- );
- } else {
- // Append directories for an already registered namespace.
- $zCLrnVItjNM>prefixDirsPsr4[$YuyWtVIzqUv] = array_merge(
- $zCLrnVItjNM>prefixDirsPsr4[$YuyWtVIzqUv],
- (array) $SuaIDTCvf
- );
- }
- }
- /**
- * Registers a set of PSR-0 directories for a given prefix,
- * replacing any others previously set for this prefix.
- *
- * @param string $YuyWtVIzqUv The prefix
- * @param array|string $SuaIDTCvf The PSR-0 base directories
- */
- public function eFYnIfEfl($YuyWtVIzqUv, $SuaIDTCvf)
- {
- if (!$YuyWtVIzqUv) {
- $zCLrnVItjNM>fallbackDirsPsr0 = (array) $SuaIDTCvf;
- } else {
- .................................................................................
- ..............................................
- ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement