use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Form\FormError;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
@@ -28,11+29,6 @@ class ApplicationController extends DefaultController {
//Prevent non-guest to access here
$this->denyAccessUnlessGranted('ROLE_GUEST', null, $this->translator->trans('Unable to access this page without role %role%!', ['%role%' => $this->translator->trans('Guest')]));
//Prevent non-guest to access here
$this->denyAccessUnlessGranted('ROLE_GUEST', null, $this->translator->trans('Unable to access this page without role %role%!', ['%role%' => $this->translator->trans('Guest')]));
- //Reject non post requests
- if (!$request->isMethod('POST')) {
- throw new \RuntimeException('Request method MUST be POST');