/** * addMap * * @param string|array $class * @param string $path * * @return $this */ public function addMap($class, $path = null) { if (is_array($class)) { foreach ($class as $ns => $path) { $this->files->addMap($ns, $path); } } else { $this->files->addMap($class, $path); } return $this; }
/** * Loads the given class or interface. * * @param string $className The name of the class to load. * * @return static */ public function loadClass($className) { $this->lastRequired = null; return parent::loadClass($className); }