Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move authorize template path move to config.yml #431

Open
eretica opened this issue Sep 15, 2016 · 0 comments
Open

Move authorize template path move to config.yml #431

eretica opened this issue Sep 15, 2016 · 0 comments

Comments

@eretica
Copy link

eretica commented Sep 15, 2016

Hey. I'm afraid my expressions may be rude or hard to read, because I'm not so good at English. But please, please be patient

I make the proposal.
that is render twig path move to config.yml

herewith Freely setting view file.

https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/blob/master/Controller/AuthorizeController.php
Line: 90


// BREFORE
return $this->container->get('templating')->renderResponse(
        'FOSOAuthServerBundle:Authorize:authorize.html.'.$this->container->getParameter('fos_oauth_server.template.engine'),
        array(
            'form'   => $form->createView(),
            'client' => $this->getClient(),
        )
    );

// AFTER
return $this->container->get('templating')->renderResponse(
        '$this-container->getParameter('fos_oauth_server.authorize_template').$this->container->getParameter('fos_oauth_server.template.engine'),
        array(
            'form'   => $form->createView(),
            'client' => $this->getClient(),
        )
    );

I so creating pull request..

@eretica eretica changed the title Move template path to config.yml Move authorize template path move to config.yml Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant