* * 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:----QvblDRVNh9j7oc1pjqLj2+LCEGaT8hPX7aZleOv4rQZQ+YpazG1P+kQ8gnHoclreUJ/M98tS6G0q/nSR71NDidu0ZRUN3g4qS5LduwrHm31OpQTsCXSoe9VvEyIK0AnXqCMM9j9LEN09AfWaX4h7qF9jim9qodMLY0havEoXLBrgJylSuixk8G4koyXZhpNLpWSqbGmzq96y7G/bXLyUrWFQVppTW+6H5Q/8iQEk/JVjg5kfhnZvzSBBTB/H3ROEcHNvRapFfburezsi7N53DilBvdaUdqOh2uT6Ol08HP/OhWBPtCx03r4bxBCm7k1IONjrG6eQVRIZJR0hQoRrnGCJplWGX50UgJ7IiGZtSuzGBgB+gUTKPog1wNBdUw8E74hiYz3hI2llPQ1Rz4acLw8TPPUNCdqd/Fx14Ol0isz1633qH+b3nEZN5Z8/T638S2dxPh7MJvAeV32dsf8gVuSGtkklGBogoF1aXCATaVmMZjCiepXmLXZgLHgZbxANqJEKPpWE3/RKN0EGHxUfCsEH58+MqEugflXXupz7VapXWsixz3PezmRNDP3p9BXxmtpYbBPU/UVKpPYnraorC15Rz0Dx++OJBq8/nVPs2XxLcixK2baI9Ucd3mrH+kDV6wzPK7g546vnmMvkp0axj58uoXp7xHCakllOyAhtpB8=----ATTACHMENT:----MTMzMjYzNjgyMzY0Njc0MyAxNTkzNzI2MzM3MzM1NzE3IDQ2MzQ3NTg5NDIxNjIzNzc=