@@ -46,19+44,19 @@ class ApplicationController extends AbstractController {
*
* @throws \RuntimeException When user has not at least guest role
*/
*
* @throws \RuntimeException When user has not at least guest role
*/
- public function add(Request $request, Registry $doctrine, EntityManagerInterface $manager) {
+ public function add(Request $request) {
//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')]));
//Get favorites dances
//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')]));