I'm playing around with the flexibility of the modules.

If I make a controller Ns\Controller\Index

Then in the module config I get something like

'controllers' => array(
        'invokables' => array(
                'Ns\Controller\Index' => 'Ns\Controller\Index',
        ),
),

If I remove the seamingly nonsens alias I get exception:
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an
instance for Ns\Controller\Index

I understand the aliasing from IndexController => Index for routing
purposes.

Wouldn't it be much nicer if the service manager could just locate this
controller without it having to be defined in the config? 



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/module-config-php-controllers-tp4656864.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to