config = $config; $this->response = $response; } /** * @return Response */ public function oauth(): Response { $providers = $this->config->get('oauth'); if (empty($providers)) { throw new HttpNotFound(); } return $this->response->withView( 'pages/settings/oauth.twig', [ 'providers' => $providers, ] + $this->getNotifications(), ); } }