ZF2-88: Zend Tool

Description

When you create a project with Zend_Tool from command line it doesn't create you also the Bootstrap class (though it creates the file). This triggers the following error (on Windows environment):

Fatal error: Uncaught exception 'Zend\Application\Exception\InvalidArgumentException' with message 'Bootstrap class not found' in E:\Work\ZendFramework\library\Zend\Application\Application.php:368 Stack trace: #0 E:\Work\ZendFramework\library\Zend\Application\Application.php(209): Zend\Application\Application->setBootstrap('E:\Work\test2\a...', 'Bootstrap') #1 E:\Work\ZendFramework\library\Zend\Application\Application.php(101): Zend\Application\Application->setOptions(Array) #2 E:\Work\test2\public\index.php(25): Zend\Application\Application->__construct('development', 'E:\Work\test2\a...') #3 {main} thrown in E:\Work\ZendFramework\library\Zend\Application\Application.php on line 368

Comments

We need to review Tool component to generate module for ZF2. Zend\Application and Zend\Controller is old style port from ZF1. Read about zf2 structure (Di, EventManager, Mvc, Module, Router, etc).

Zend\Tool does not work with ZF2. You can clone the ZendSkeletonApplication to get a base working ZF2 project.