Just to clarify: it's not "Direct Injection Container", it is "Dependency Injection Container" :)
Cheers, Daniel On 25.01.2011, at 10:53, Dan Leech wrote: > Looks like the DIrect Injection Container is instantiating the > FormHelper with the wrong service. You might want to check your > "config.yml/xml/php" to make sure you havnt changed anything, and then > ensure that the following code is at the bottom of the > `src\vendor\Symfony\config\Bundle\FrameworkBundle\Resources\config\templating.xml` > file: > > <service id="templating.helper.form" > class="%templating.helper.form.class%"> > <tag name="templating.helper" alias="form" /> > <argument type="service" id="templating" /> > </service> > > <service id="templating.name_parser" > class="%templating.name_parser.class%"> > <argument type="service" id="kernel" /> > </service> > > <service id="templating.loader" alias="templating.loader.filesystem" /> > > <service id="templating" alias="templating.engine.delegating" /> > > > > On 25 January 2011 02:15, Michael <[email protected]> wrote: >> when setting the templating engine to PHP and trying to load a Form, I >> get the following error: >> >> Catchable fatal error: Argument 1 passed to Symfony\Bundle >> \FrameworkBundle\Templating\Helper\FormHelper::__construct() must be >> an instance of Symfony\Bundle\FrameworkBundle\Templating >> \DelegatingEngine, instance of Symfony\Bundle\FrameworkBundle >> \Templating\PhpEngine given, called in /.../app/cache/dev/ >> appDevDebugProjectContainer.php on line 433 and defined in /.../src/ >> vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ >> FormHelper.php on line 31 >> >> Any idea? >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?hl=en >> > > > > -- > Dan Leech > > Web Developer > www.dantleech.com > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
