lib: Make Loader::registerNamespace() fluent

refs #5786
This commit is contained in:
Eric Lippmann 2015-08-17 13:29:15 +02:00
parent e8c0e97bb3
commit d4de7c0519

View File

@ -33,6 +33,7 @@ class Loader
* @param string $namespace * @param string $namespace
* @param string $directory * @param string $directory
* *
* @return $this
* @throws ProgrammingError * @throws ProgrammingError
*/ */
public function registerNamespace($namespace, $directory) public function registerNamespace($namespace, $directory)
@ -46,6 +47,8 @@ class Loader
} }
$this->namespaces[$namespace] = $directory; $this->namespaces[$namespace] = $directory;
return $this;
} }
/** /**