use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Translation\TranslatorInterface;
+ *
+ * @param ContainerInterface $container The container instance
+ * @param RouterInterface $router The router instance
+ * @param Slugger $slugger The slugger instance
+ * @param TranslatorInterface $translator The translator instance
- public function __construct(ContainerInterface $container, TranslatorInterface $translator, RouterInterface $router) {
+ public function __construct(ContainerInterface $container, RouterInterface $router, Slugger $slugger, TranslatorInterface $translator) {
'site_png' => $this->config['site']['png'],
'site_svg' => $this->config['site']['svg'],
'site_title' => $translator->trans($this->config['site']['title']),
'site_png' => $this->config['site']['png'],
'site_svg' => $this->config['site']['svg'],
'site_title' => $translator->trans($this->config['site']['title']),
+ *
+ * @desc Send a contact mail to configured contact
+ *
+ * @param Request $request The request instance
+ * @param MailerInterface $mailer The mailer instance
+ *
+ * @return Response The rendered view or redirection
//Create the form according to the FormType created previously.
//And give the proper parameters
$form = $this->createForm('Rapsys\AirBundle\Form\ContactType', null, [
//Create the form according to the FormType created previously.
//And give the proper parameters
$form = $this->createForm('Rapsys\AirBundle\Form\ContactType', null, [
- return $this->render('@RapsysAir/default/policy.html.twig', ['title' => $title, 'section' => $section]+$this->context);
+ return $this->render('@RapsysAir/default/regulation.html.twig', ['title' => $title, 'section' => $section]+$this->context);