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%)
|
ProfileSql to encja?
Raczej chodzi o to aby ParamConverter wiedział jaki obiekt encji wyciągnąć więc popatrz na route (i z tego pomyśl co przekazać do forward) ty nie przekazujesz w ten sposób obiektu do aktualnego requesta tylko "budujesz" nowy link i to jest nowy request |
|
|
|
szypi1989 [Symfony][Symfony2]requires that you provide a value for the "$profilesql" argument. 20.08.2018, 07:57:38
szypi1989 ProfileSql to obiekt klasy , który jest wstrzykiwa... 20.08.2018, 21:50:07
robert0770 Co to za obiekt? jak nie encja to moze jakis servi... 21.08.2018, 14:14:07 ![]() ![]() |
|
Aktualny czas: 28.12.2025 - 16:12 |