/**
* @param string $name name of the service to query for
- * @return object registered service for the given $name
+ * @return mixed registered service for the given $name
*/
public function query($name) {
return $this->offsetGet($name);
}
- function registerParameter($name, $value)
- {
+ /**
+ * @param string $name
+ * @param mixed $value
+ */
+ function registerParameter($name, $value) {
$this[$name] = $value;
}
*
* @param string $name name of the service to register another backend for
* @param \Closure $closure the closure to be called on service creation
+ * @param bool $shared
*/
- function registerService($name, \Closure $closure, $shared = true)
- {
+ function registerService($name, \Closure $closure, $shared = true) {
if ($shared) {
$this[$name] = \Pimple::share($closure);
} else {