Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SF2][Symfony][Symfony2]Nie wykrywa serwisu Request w services.yml
Crash89
post
Post #1





Grupa: Zarejestrowani
Postów: 191
Pomógł: 7
Dołączył: 3.04.2013

Ostrzeżenie: (0%)
-----


Mam taki błąd:

ServiceNotFoundException in CheckExceptionOnInvalidReferenceBehaviorPass.php line 58:
The service "rate.twig_extension" has a dependency on a non-existent service "request".


A o to mój kod serwisu:
  1. rate.twig_extension:
  2. class: AppBundle\Twig\StarRatingExtension
  3. arguments: ["@doctrine", "@Request"]
  4. tags:
  5. - { name : twig.extension }


Czy cos się zmieniło w symfony 3, że nie ma serwisu request?

Już nie aktualne, trzeba użyć @request_stack;

Ten post edytował Crash89 21.11.2016, 13:24:24
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 08:11