Witam . Otóż mam problem. Podczas wykonywania przekierowania: 'user' => $this->get('security.token_storage')->getToken()->getUser() ));
Pokazuje mi się błąd:
Controller "AppBundle\Controller\UserController::profileinfoAction()" requires that you provide a value for the "$profilesql" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument after this one.
Nie Chce mi po prostu wstrzyknąć zależności podczas przekierowania. Jak to zrobić aby wstrzykneło?
To jest moja akcja z argumentami w kontrolerze:
public function profileinfoAction(Request $request, $user, ProfileSql $profilesql) {}
I jak wstrzyknąć tą usługę ProfileSql $profilesql do przekierowania?
Próbowałem tak:
'user' => $this->get('security.token_storage')->getToken()->getUser(), 'ProfileSql' => $profilesql ));
No ale niestety nie idzie.