[ 'except' => ['index'], ], 'nginxCache' => [ 'class' => NginxCache::class, 'rules' => [ 'index' => 3600, // 1h ], ], ]); } public function verbs() { return [ 'index' => ['GET'], ]; } public function actionIndex( CaptchaRegistry $captchaRegistry, ): array { return [ // Kept for backward compatibility, use captcha instead 'reCaptchaPublicKey' => $captchaRegistry->getProvider(CaptchaValidator::DEFAULT_TYPE)->getPublicParams()['publicKey'], 'captcha' => $captchaRegistry->getPublicParams(), ]; } }