On 22.02.2011 11:20, John - White October wrote:
> Oh I thought that was it! But sadly not.
>
> Still getting "missing argument" when my controller is constructed.
You have to use the service name in your routes:
foo:
pattern: /lala
defaults: { _controller: my_controller:fooAction }
In that case you won't have the DIC injected though. You need to
explicitly inject (@service_container) it if it you need it for anything.
Also just a detail, I don't think you need to define "foo.class"
parameters for your own application-level services. Since they are under
your control you just can change the class as needed. This is only
useful for re-usable bundles I'd say.
Cheers
--
Jordi Boggiano
@seldaek :: http://seld.be/
--
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