/** * Registers the class loader (activates it). * * Basically, spl_autoload_register($this->getHandle()) * * @param bool $prepend * * @return $this */ public function register($prepend = false) { if ($this->isRegistered()) { return $this; } try { spl_autoload_register($this->handle, true, $prepend); } catch (\Exception $e) { throw new \RuntimeException("Failed to register " . static::class . " as a SPL autoloader (spl_autoload_register())", 0, $e); } return parent::register($prepend); }
public function register($prepend = false) { $this->innerLoader->register($prepend); return parent::register($prepend); }