Beispiel #1
0
 /**
  * addPsr0
  *
  * @param string|array $class
  * @param string       $path
  *
  * @return  $this
  */
 public function addPsr0($class, $path = null)
 {
     if (is_array($class)) {
         foreach ($class as $ns => $path) {
             $this->psr0->addNamespace($ns, $path);
         }
     } else {
         $this->psr0->addNamespace($class, $path);
     }
     return $this;
 }
Beispiel #2
0
 /**
  * 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);
 }