Bump psr/container from 1.0.0 to 1.1.1
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
62929cc646
commit
7287a15acb
|
@ -52,11 +52,11 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
|
||||||
$this->container = new Container();
|
$this->container = new Container();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get($id) {
|
public function get(string $id) {
|
||||||
return $this->query($id);
|
return $this->query($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function has($id): bool {
|
public function has(string $id): bool {
|
||||||
// If a service is no registered but is an existing class, we can probably load it
|
// If a service is no registered but is an existing class, we can probably load it
|
||||||
return isset($this->container[$id]) || class_exists($id);
|
return isset($this->container[$id]) || class_exists($id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue