pzwosta
2013-06-25 20:12:46 UTC
Hi,
since I have updated from Symfony 2.1 to 2.3 I get the
ServiceNotFoundException: You have requested a non-existent service
"form.factory" when I try to call createForm from my Controller.
$form = $this->createForm(new myForm($this->container), $myFormData);
In bootstrap.php.cache, function get($id..), method_exists($this, $method
='get'.strtr($id, array('_'=>'','.'=>'_')).'Service')) returns false and
appDevDebugProjectContainer (=$this) really doesn't have a method
getForm_FactoryService. Back in Symfony 2.1 it had one and thus it worked.
I don't register my form type as a service.
Where is the getForm_FactoryService? In Symfony 2.1 there were also
getForm_RegistryService and about 20 getForm_Type_xxxx services. With
Symfony 2.3 there are only two getForm services left:
TypeGuesser_DoctrineService and Type_EntityService.
The update infos didn't help. Any idea?
thanks
Peter
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
since I have updated from Symfony 2.1 to 2.3 I get the
ServiceNotFoundException: You have requested a non-existent service
"form.factory" when I try to call createForm from my Controller.
$form = $this->createForm(new myForm($this->container), $myFormData);
In bootstrap.php.cache, function get($id..), method_exists($this, $method
='get'.strtr($id, array('_'=>'','.'=>'_')).'Service')) returns false and
appDevDebugProjectContainer (=$this) really doesn't have a method
getForm_FactoryService. Back in Symfony 2.1 it had one and thus it worked.
I don't register my form type as a service.
Where is the getForm_FactoryService? In Symfony 2.1 there were also
getForm_RegistryService and about 20 getForm_Type_xxxx services. With
Symfony 2.3 there are only two getForm services left:
TypeGuesser_DoctrineService and Type_EntityService.
The update infos didn't help. Any idea?
thanks
Peter
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.