public function __construct(Repository $repository) { $this->repository = $repository; $this->contentService = $repository->getContentService(); $this->locationService = $repository->getLocationService(); }