AuthBucket\OAuth2\Tests\TestBundle\Controller\DemoController::responseTypeCodeAction PHP Метод

responseTypeCodeAction() публичный Метод

public responseTypeCodeAction ( Request $request, Silex\Application $app )
$request Symfony\Component\HttpFoundation\Request
$app Silex\Application
    public function responseTypeCodeAction(Request $request, Application $app)
    {
        $authorizationResponse = $request->query->all();
        $tokenPath = $app['url_generator']->generate('demo_grant_type_authorization_code', ['code' => $authorizationResponse['code']]);
        return $app['twig']->render('demo/response_type/code.html.twig', ['authorization_response' => $authorizationResponse, 'token_path' => $tokenPath]);
    }