Unfortunately, no luck anyway... With the following config: request: class: Symfony\Component\HttpFoundation\Request templating.helper.assets: class: %templating.helper.assets.class% arguments: {type:service, id:@request, strict:false}
I have the following error: Catchable fatal error: Argument 1 passed to Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper::__construct() must be an instance of Symfony\Component\HttpFoundation\Request, string given, called in D:\symfony2_test\app1\app\cache\dev\appDevDebugProjectContainer.php on line 1615 and defined in D:\symfony2_test\app1\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper.php on line *32* Call Stack #TimeMemoryFunctionLocation 10.0007369648{main}( )..\app_dev.php*:*0 20.01611506136Symfony\Component\HttpKernel\Kernel->handle( )..\app_dev.php*: *19 32.338612433936Symfony\Bundle\FrameworkBundle\HttpKernel->handle( )..\bootstrap.php.cache*:*613 42.338612434344Symfony\Component\HttpKernel\HttpKernel->handle( )..\HttpKernel.php*:.... .... ....* --- WBR, Valera On Wed, May 18, 2011 at 17:11, Christophe COEVOET <s...@notk.org> wrote: > Le 18/05/2011 16:06, Valera a écrit : > > my.service is just a service class defined like the following >> >> my.service: >> class: Acme\AcmeBundle\Service\MyService >> >> Removing the setter injection does not have any effect - the same >> exception is still shown. >> > Ah sorry, it was for the request service. So it is @request= > > > -- > Christophe | Stof > > -- > 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 users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?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 users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en