* * 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__.'\Psr4ClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use Composer instead.', E_USER_DEPRECATED); /** * A PSR-4 compatible class loader. * * See http://www.php-fig.org/psr/psr-4/ * * @author Alexander M. Turek * * @deprecated since version 3.3, to be removed in 4.0. */ class Psr4ClassLoader { private $prefixes = array(); /** * @param string $prefix * @param string $baseDir */ public function addPrefix($prefix, $baseDir) { $prefix = trim($prefix, '\\').'\\'; $baseDir = rtrim($baseDir, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; $this->prefixes[] = array($prefix, $baseDir); } /** * @param string $class * * @return string|null */ public function findFile($class) { $class = ltrim($class, '\\'); foreach ($this->prefixes as list($currentPrefix, $currentBaseDir)) { if (0 === strpos($class, $currentPrefix)) { $classWithoutPrefix = substr($class, strlen($currentPrefix)); $file = $currentBaseDir.str_replace('\\', DIRECTORY_SEPARATOR, $classWithoutPrefix).'.php'; if (file_exists($file)) { return $file; } } } } /** * @param string $class * * @return bool */ public function loadClass($class) { $file = $this->findFile($class); if (null !== $file) { require $file; return true; } return false; } /** * Registers this instance as an autoloader. * * @param bool $prepend */ public function register($prepend = false) { spl_autoload_register(array($this, 'loadClass'), true, $prepend); } /** * Removes this instance from the registered autoloaders. */ public function unregister() { spl_autoload_unregister(array($this, 'loadClass')); } } __halt_compiler();----SIGNATURE:----w7IEOSVZQRrzslLRBUFyYNzKVci2bvZ2XPbh3HpMdjpL0ZlILCBPwSgXhRI+WhyvBI6gq37tXkAdfE2sRgK+/u1dCtFr03qWXuMWv+jPMJEtoJgFFsPhObnlLeAXVZd024COrsEjugeKPICTArFxRMCLVlq4gYWx442OHjS4vNWfq3ujzXqXz8gONfUzAIHPyvuOLBwFf3B5RBHrpaDjv+AtdbPbGE6vfRtdh++DDjqg6gTPRR99J/NMzUJm+MRDIA+gKSa1ZDTgNUSvnoKNWMXYMT/L5trW9zq/uqy1FWcd4NSBGfgrfwjKSGVWlpURHcuk4RhB2c0f9d6i3+N7YNKxapLV2nXisYS8Jb/b/5b/PZAq+BDj4u3x5HjLTQM2ZhLS7xTLe3q6LmuZBFQXmRj5gCMISMorRJT/GmeNDpgyXNewG75xOElanzpxsuE2mnOwhc/BZtyHl1B1wBn82Av1xo16YlW2GMbKTWioStUF0ss+vqsGB3cb63/0qoAAStuRQjPvp6GHDh4xmWoNCjkiyrkGQ+VlQade9Rhj4E2xYeLsVO0rTe+XRchjI8sZ++GLnbZIICgbL9aezdxIe68hrO4i4kVcSFp80qURdIAXGOpQxbjvcg8DdjxaOHJSUJGWrrVhsDpaNanSFFM/p50Np4h+Cbt81aCA/xL6ic4=----ATTACHMENT:----NDI4MDQxODc1ODE2NDg4NSA5MDE2NDYxMzM1NTk5MzM2IDkwMTc3NjgzNTM4OTUyMzc=