![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 500 Pomógł: 1 Dołączył: 29.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
Cześć, mam problem z automatycznym ładowaniem serwisu. Zgodnie z dokumentacją: http://symfony.com/doc/current/service_container.html wystarczy, że utworzę klasę i nie muszę jej już nigdzie konfigurować. No więc zrobiłem klasę:
Jednak robią w kontrolerze
Dostaję błąd Kod You have requested a non-existent service "AppBundle\Model\CurrencyManager". services.yml: Kod parameters:
#parameter_name: value services: _defaults: autowire: true autoconfigure: true public: false AppBundle\: resource: '../../src/AppBundle/*' exclude: '../../src/AppBundle/{Entity,Repository,Tests}' AppBundle\Controller\: resource: '../../src/AppBundle/Controller' public: true tags: ['controller.service_arguments'] Ten post edytował Lirdoner 21.07.2017, 14:02:58 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 11:06 |