X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/8e9a8cfed083ec7e7410aab5aadcae945cdfd9e8..e54f836ad6dece2e01d79d06e60ff66c9a29d1b7:/Controller/AbstractController.php?ds=sidebyside diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index d13c675..6efa2ed 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -218,7 +218,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv * * {@inheritdoc} */ - protected function render(string $view, array $parameters = [], Response $response = null): Response { + protected function render(string $view, array $parameters = [], ?Response $response = null): Response { //Create response when null $response ??= new Response(); @@ -295,7 +295,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv //Create ApplicationType form $application = $this->factory->create('Rapsys\AirBundle\Form\ApplicationType', null, [ //Set the action - 'action' => $this->generateUrl('rapsys_air_application_add'), + 'action' => $this->generateUrl('rapsysair_application_add'), //Set the form attribute 'attr' => [ 'class' => 'col' ], //Set dance choices @@ -452,7 +452,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv //With empty locations link if (empty($parameters['locations_link'])) { //Set locations link - $parameters['locations_link'] = $this->router->generate('rapsys_air_location'); + $parameters['locations_link'] = $this->router->generate('rapsysair_location'); } //With empty locations title