authorizationHelper = $authorizationHelper; $this->security = $security; } public function getReachableCenters(string $role, ?Scope $scope = null): array { if (!$this->security->getUser() instanceof User) { return []; } return $this->authorizationHelper->getReachableCenters($this->security->getUser(), $role, $scope); } public function getReachableScopes(string $role, $center): array { if (!$this->security->getUser() instanceof User) { return []; } return $this->authorizationHelper->getReachableScopes($this->security->getUser(), $role, $center); } }