php - ServiceNotFoundException' 'Unable to resolve service "Router" to a factory -


i'm using zend framework 3 doctrine 2 , giving me error dnt know why

fatal error: uncaught exception 'zend\servicemanager\exception\servicenotfoundexception' message 'unable resolve service "router" factory; provided during configuration?' in c:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\servicemanager.php:681 stack trace: #0 c:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\servicemanager.php(757): zend\servicemanager\servicemanager->getfactory('router') #1 c:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\servicemanager.php(200): zend\servicemanager\servicemanager->docreate('router') #2 c:\xampp\htdocs\zendf\vendor\zendframework\zend-mvc\src\application.php(158): zend\servicemanager\servicemanager->get('router') #3 c:\xampp\htdocs\zendf\vendor\zendframework\zend-mvc\src\application.php(273): zend\mvc\application->bootstrap(array) #4 c:\xampp\htdocs\zendf\public\index.php(40): zend\mvc\application::init(array) #5 {main} thrown in c:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\servicemanager.php on line 681

i got same problem while upgrading app zf2 zf3.

i solved problem loading module zend\router. there more modules coming zf3, ended using in modules.config.php:

return [     'zend\cache',     'zend\form',     'zend\hydrator',     'zend\inputfilter',     'zend\paginator',     'zend\i18n',     'zend\filter',     'zend\router',     'zend\validator',     'zend\navigation',     ... ]; 

i got modules.config.php , new application.config.php zf3 skeleton application.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -