translation and redirection

This commit is contained in:
2018-07-06 14:02:40 +02:00
parent 39e166eb5b
commit 5ada6d913c
4 changed files with 32 additions and 9 deletions

View File

@@ -318,11 +318,12 @@ class SingleTaskController extends Controller
* options={ "menus": { "user": { "order": -10, "label": "My tasks", "icon": "tasks" } } }
* )
*/
public function myTasksAction()
public function myTasksAction(TranslatorInterface $translator)
{
return $this->redirectToRoute('chill_task_singletask_list', [
'user_id' => $this->getUser()->getId(),
'hide_form' => true
'hide_form' => true,
'title' => $translator->trans('My tasks')
]);
}