Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 207 Pomógł: 0 Dołączył: 7.09.2010 Ostrzeżenie: (0%)
|
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:
I jak wstrzyknąć tą usługę ProfileSql $profilesql do przekierowania? Próbowałem tak:
No ale niestety nie idzie. |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 42 Pomógł: 1 Dołączył: 18.02.2015 Ostrzeżenie: (0%)
|
Co to za obiekt? jak nie encja to moze jakis service? ale to od tego masz cointainera zeby z niego korzystać
w argumentach controllera dajesz tylko to co masz w route, nic wiecej nie potrzeba. Kontrolerów sie przeważnie nie używa jak innych metod po za tym co Ci szkodzi zrobić zwykły redirect? |
|
|
|
szypi1989 [Symfony][Symfony2]requires that you provide a value for the "$profilesql" argument. 20.08.2018, 07:57:38
robert0770 ProfileSql to encja?
Raczej chodzi o to aby Param... 20.08.2018, 14:06:44
szypi1989 ProfileSql to obiekt klasy , który jest wstrzykiwa... 20.08.2018, 21:50:07 ![]() ![]() |
|
Aktualny czas: 30.12.2025 - 11:17 |