ZF2-88: Zend Tool

Issue Type: Bug Created: 2011-10-27T07:48:58.000+0000 Last Updated: 2012-05-31T15:52:07.000+0000 Status: Closed Fix version(s): Reporter: Nicolae Dima (bornforcode) Assignee: Ralph Schindler (ralph) Tags: - Zend\Tool

Related issues: - ZF2-103



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


Posted by BenoƮt Durand (intiilapa) on 2011-10-28T18:22:40.000+0000

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).

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-23T15:47:09.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.