Erro de criacao de rotas no livro #Do PHP ao zend framework


#1

Fatal error: Uncaught exception ‘Zend\ModuleManager\Exception\RuntimeException’ with message ‘Module (Tropa) could not be initialized.’ in C:\xampp\htdocs\corps1\vendor\zendframework\zend-modulemanager\src\ModuleManager.php:203 Stack trace: #0 C:\xampp\htdocs\corps1\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(175): Zend\ModuleManager\ModuleManager->loadModuleByName(Object(Zend\ModuleManager\ModuleEvent)) #1 C:\xampp\htdocs\corps1\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(97): Zend\ModuleManager\ModuleManager->loadModule(‘Tropa’) #2 C:\xampp\htdocs\corps1\vendor\zendframework\zend-eventmanager\src\EventManager.php(322): Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent)) #3 C:\xampp\htdocs\corps1\vendor\zendframework\zend-eventmanager\src\EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\ModuleManager\ModuleEvent)) #4 C:\xampp\htdocs\corps1\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(120): Zend\Even in C:\xampp\htdocs\corps1\vendor\zendframework\zend-modulemanager\src\ModuleManager.php on line 203


#2

Apenas atualize o autoloading no composer.json:

Capture