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
1 changed files with 3 additions and 0 deletions

View File

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