This topic contains 3 replies, has 2 voices, and was last updated by hemham914 9 years, 9 months ago.
- Topic
Hello,
I have an application with about 5 different bundles. In the latest bundle (which I created by copying a previous, functioning one and renaming the filenames & everything in them), I have a form handler service that I defined in services.yml, however when I go to the ‘create’ page where the form is displayed, I get an error in log that reads:
123Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "stc_contract.form"." at C:\xampp\htdocs\orocrm\crm-application\app\bootstrap.php.cache line 1969 {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: You have requested a non-existent service \"stc_contract.form\". at C:\\xampp\\htdocs\\orocrm\\crm-application\\app\\bootstrap.php.cache:1969)"}Here is what my services.yml looks like:
123456789101112131415161718192021222324252627282930parameters:stc_contract.entity.class: Stc\Bundle\ContractBundle\Entity\Contractstc_contract.contract.entity.class: Stc\Bundle\ContractBundle\Entity\Contractstc_contract.form.type.contract.class: Stc\Bundle\ContractBundle\Form\Type\ContractTypestc_contract.form.handler.class: Stc\Bundle\ContractBundle\Form\Handler\ContractHandlerservices:stc_contract.form.type.contract:class: %stc_contract.form.type.contract.class%arguments:- %stc_contract.entity.class%tags:- { name: form.type, alias: stc_contract }stc_contract.form.handler:class: %stc_contract.form.handler.class%scope: requestarguments:- @stc_contract.form- @request- @doctrine.orm.entity_manager- @oro_tag.tag.managerstc_contract.form:class: Symfony\Component\Form\Formfactory_method: createNamedfactory_service: form.factoryarguments:- "stc_contract"- "stc_contract"I doubled checked and it looks like I am loading the services.yml file from my Extension class. I’ve tried clearing the cache on all env’s (via manual deletion & command line). When I run container:debug, I don’t see the service listed BUT I do see the services from the bundle that I copied in order to make this one.
Any ideas because I am stumped..
Thanks in advance
~Coding my life away~
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.