userSession->getUser(); if (is_null($user) || $name !== $user->getUID()) { throw new Forbidden(); } return new PhotosHome($principalInfo, $this->albumMapper, $this->placeMapper, $this->reverseGeoCoderService, $name, $this->rootFolder, $this->userManager, $this->groupManager, $this->userConfigService, $this->logger); } public function getName(): string { return 'photos'; } }