Just to put more code so people that don't do this yet (I think it's
just me and lukas.. :) can represent themselves:

# config.yml for FooBundle:

services:
    foo.default.controller:
        class: Application\FooBundle\Controller\DefaultController
        arguments: &foo.controller
            - @foo.view
            - @request
            - @doctrine.orm.entity_manager
    foo.other.controller:
        class: Application\FooBundle\Controller\OtherController
        arguments:
            <<: *foo.controller
    foo.view:
        class: Application\FooBundle\View\FooView
        arguments:
            - @service_container

# routing.yml for FooBundle:

home:
    pattern:  /
    defaults: { _controller: foo.default.controller:indexAction }
other:
    pattern:  /other
    defaults: { _controller: foo.other.controller:otherAction }


I hope this helps.

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

Reply via email to