* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ClassLoader; @trigger_error('The '.__NAMESPACE__.'\MapClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use Composer instead.', E_USER_DEPRECATED); /** * A class loader that uses a mapping file to look up paths. * * @author Fabien Potencier * * @deprecated since version 3.3, to be removed in 4.0. */ class MapClassLoader { private $map = array(); /** * @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 bool $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]; } } } __halt_compiler();----SIGNATURE:----OwAG2jAiDTkST3twSc+GGrcg0EUOGhmy5Wwkn7VDn4I99J3j+j3DBYnz3E2Xtf5Hb43oaE6vT1c9ABYdIpldirxAptKn5msUSZOkhLfMPHo4eWsnKV+RQ+Svc4OcLBN/OOLJ//D+4zrs0FdQza1tnG0q9LE8yee/VxFoQms4JKshlTMXtgxnC2MH4FIlSL22BYBUajoVOC3hBGPunZBfV08aBLyWo9z5EGcecdG8e9TlvMimMqZYQvsqyk9OrILfN5Kwy92GcmIBEFmKlNisoIbZ7wN+I4xVunsGhp1e/0w0B+B8F4Uuau7njPx0wXxeOj2FGiS6qpEnkdW3tFITK8r8Qkvds51FTLDd5e8jUNG0bBR39RUPYH++J7UfcemRXkj7I+ekYuUeuFyNyfOnXKpFfZA0fYEkwRvTJHv25nfDiPo5EOdKHYiqaTAno4AZCzldifEHXs/tdF6K35h+G1iCG/JNitvjKL8Vee2JEFmcUdLWL8d9oFnQKAx3Vh8AKro9x2ojlYNtmiG7LgMMqPzbpkBZeHcQy7vrxe8ys5MMoxmP86deKqmpKTUJ+ly358Vdcgsz/rh2OVEKvtVh2Oks5su39Fcfoji3sLfEPNIQwRTCoPlcV1DJoPlaGhnPQTarEzMvrL340G7xpNUzyjcvadN6LFunVJ6+gZAHH64=----ATTACHMENT:----NTQ5MTUwNzkyMjgwOTM4IDE4NzYzMDYxNzQwNzE4NTAgMjM2NTk2NzMwMDA2OTA0OA==