protected function assertApiKey($apiKey) { if ($this->project->getApiKey() != $apiKey) { throw new AccessDeniedHttpException('You are not allowed to fetch these informations.'); } }