diff --git a/sources/Service/ServiceLocator/ServiceLocator.php b/sources/Service/ServiceLocator/ServiceLocator.php index 4277d0bb9..3e16ff884 100644 --- a/sources/Service/ServiceLocator/ServiceLocator.php +++ b/sources/Service/ServiceLocator/ServiceLocator.php @@ -46,7 +46,7 @@ class ServiceLocator implements ContainerInterface */ public function get(string $id): mixed { - if (!isset($this->aServices[$id])) { + if (!$this->has($id)) { throw new NotFoundException("Service ".json_encode($id)." not found"); }