Joli\SlackSecretSanta\Controller\SantaController::getSecretSantaOrThrow404 PHP Méthode

getSecretSantaOrThrow404() private méthode

private getSecretSantaOrThrow404 ( Request $request, string $hash ) : SecretSanta
$request Symfony\Component\HttpFoundation\Request
$hash string
Résultat Joli\SlackSecretSanta\SecretSanta
    private function getSecretSantaOrThrow404(Request $request, $hash)
    {
        $secretSanta = $request->getSession()->get($this->getSecretSantaSessionKey($hash));
        if (!$secretSanta) {
            throw new NotFoundHttpException();
        }
        return $secretSanta;
    }