Controller/SEOController.php
public function googleVerifAction( $key )
    {
        if ( $this->getConfigResolver()->getParameter( 'google_verification', 'nova_ezseo' ) != $key )
        {
            throw new NotFoundHttpException( "Google Verification Key not found" );
        }
        $response = new Response();
        $response->setSharedMaxAge( 24 * 3600 );
        $response->setContent( "google-site-verification: google{$key}.html" );
        return $response;
    }
public function googleVerifAction( $key )
    {
        if ( $this->getConfigResolver()->getParameter( 'google_verification', 'nova_ezseo' ) != $key )
        {
            throw new NotFoundHttpException( "Google Verification Key not found" );
        }
        $response = new Response();
        $response->setSharedMaxAge( 24 * 3600 );
        $response->setContent( "google-site-verification: google{$key}.html" );
        return $response;
    }
public function googleVerifAction ( $ key ) { if ( $ this -> getConfigResolver ( ) -> getParameter ( 'google_verification' , 'nova_ezseo' ) != $ key ) { throw new NotFoundHttpException ( "Google Verification Key not found" ) ; } $ response = new Response ( ) ; $ response -> setSharedMaxAge ( 24 * 3600 ) ; $ response -> setContent ( "google-site-verification: google{$key}.html" ) ; return $ response ; }
Google Verification route

@param string $key
@Route("/google{key}.html", requirements={ "key": "[a-zA-Z0-9]*" })
@Method("GET")
@throws NotFoundHttpException
@return Response
Google Verification route