This is documented under "service names good practices" at http://framework.zend.com/manual/2.1/en/modules/zend.service-manager.quick-start.html
You can read some discussion about it on https://github.com/zendframework/zf2-documentation/pull/692 and http://stackoverflow.com/questions/15039144/what-is-the-sense-of-naming-invokables-like-classes Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 28 April 2013 11:18, whisher [via Zend Framework Community] < ml-node+s634137n4659857...@n4.nabble.com> wrote: > Hi, > I'm starting naming like like this: > 'controllers' => array( > 'invokables' => array( > 'mymodule_controller_base' => > 'mymodule\Controller\BaseController', > 'mymodule_controller_test' => > 'mymodule\Controller\TestController' > ), > ), > 'router' => array( > 'routes' => array( > 'mymodule_route' => array( > 'type' => 'Zend\Mvc\Router\Http\Literal', > 'options' => array( > 'route' => '/', > 'defaults' => array( > 'controller' => 'mymodule_controller_base', > 'action' => 'index', > ), > ), > ), > > I'm wondering if it is acceptable or not. > What's the best practise ? > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://zend-framework-community.634137.n4.nabble.com/zend-2-key-name-in-the-config-best-practise-tp4659857.html > To start a new topic under Zend Framework, email > ml-node+s634137n634138...@n4.nabble.com > To unsubscribe from Zend Framework Community, click > here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4> > . > NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Re-zend-2-key-name-in-the-config-best-practise-tp4659858.html Sent from the Zend Framework mailing list archive at Nabble.com.