-
Notifications
You must be signed in to change notification settings - Fork 66
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
On enlève SiteBaseController et tout ce qui va avec #1605
base: master
Are you sure you want to change the base?
Conversation
sources/AppBundle/WebsiteBlocks.php
Outdated
* | ||
* @return Response A Response instance | ||
*/ | ||
public function render(string $view, array $parameters = [], Response $response = null): Response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On peut discuter du nommage du service et de cette fonction, pour que ce soit bien clair.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm on a un namespace pour twig donc je propose un truc de ce genre :
\AppBundle\Twig\Renderer
\AppBundle\Twig\TemplateRenderer
\AppBundle\Twig\ViewRenderer
Et le nom de la méthode me semble bien.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bien vu pour le namespace.
J'aime bien : \AppBundle\Twig\ViewRenderer
sources/AppBundle/WebsiteBlocks.php
Outdated
* | ||
* @return Response A Response instance | ||
*/ | ||
public function render(string $view, array $parameters = [], Response $response = null): Response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm on a un namespace pour twig donc je propose un truc de ce genre :
\AppBundle\Twig\Renderer
\AppBundle\Twig\TemplateRenderer
\AppBundle\Twig\ViewRenderer
Et le nom de la méthode me semble bien.
sources/AppBundle/WebsiteBlocks.php
Outdated
* | ||
* @return Response A Response instance | ||
*/ | ||
public function render(string $view, array $parameters = [], Response $response = null): Response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Une question, j'ai checkout la branche et je ne trouve au appel qui passe une $response
. Est-ce qu'il y en a que je n'ai pas trouvés ?
Et sinon, est-ce que c'est nécessaire de garder ce paramètre ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Effectivement, j'ai repris la même signature que la fonction render()
fourni par le Controller, mais ce n'est pas utile.
0a4f112
to
2bc244b
Compare
2bc244b
to
17a7e60
Compare
On enlève SiteBaseController.
Création du service
WebsiteBlocks
qui permet de construire lesblocks
et de faciliter l'injection aux templates via la fonctionrender()
.