sonata-project/SonataAdminBundle — pull request #458 by dbu (2011-12-18 20:02:27+00:00)
Title: support controller as a service in RouteCollection

i needed to inject things into a controller that is used by the admin service. but RouteCollection was not aware of the different handling by symfony (if its a service, the method name is used as is, no "Action" is appended). while i would have lived with making methods like edit() that forward to parent::editAction, it fails for list() because "list" is a reserved keyword in php and can not be a method name.

from how i understood symfony, the check for ":" is enough to tell whether the controller is a Bundle:Controller name or a servicename.