ZF2-103: Empty files while creating new project (using zf console)

Issue Type: Bug Created: 2011-11-14T08:49:05.000+0000 Last Updated: 2012-02-23T16:36:57.000+0000 Status: Resolved Fix version(s): Reporter: Alexey Kosov (mazafaka) Assignee: Matthew Weier O'Phinney (matthew) Tags: Related issues: - ZF2-89



c:\WebServer\htdocs>zf create project zf2test Creating project at C:/WebServer/htdocs/zf2test Note: This command created a web project, for more information setting up your V HOST, please see docs/README

Notice: Undefined property: Zend\Code\Reflection\FileReflection::$contents in C: \WebServer\htdocs\lib\ZendFramework2\library\Zend\Code\Reflection\FileReflection .php on line 262

Notice: Undefined property: Zend\Code\Reflection\FileReflection::$contents in C: \WebServer\htdocs\lib\ZendFramework2\library\Zend\Code\Reflection\FileReflection .php on line 262

Content of created Bootstrap.php, ErrorController.php:



PHP Version 5.3.8 Zend Framework 2.0.0beta1


Posted by Alex (slbug) on 2012-01-07T02:08:16.000+0000

Any news on it?

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

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

Posted by Matthew Weier O'Phinney (matthew) on 2012-02-23T15:35:44.000+0000

I'm closing this, as I'll be removing Zend\Tool prior to the upcoming beta3 release. The functionality is largely replaced by having the ZendSkeletonApplication repository, and we will be creating functionality for tooling surrounding our Zend\Console component for beta4.

Posted by Kazusuke Sasezaki (sasezaki) on 2012-02-23T15:59:16.000+0000

removing Zend\Tool entirely? not only Zend\Tool\Project, Zend\Tool\Framework too ?

Posted by Matthew Weier O'Phinney (matthew) on 2012-02-23T16:36:57.000+0000

Yes. We'll likely build such functionality off a combination of Zend\Console and Zend\Code\Generator in the future; the current solution had design goals that we don't feel fit ZF2, and which are hard to maintain and extend.

Have you found an issue?

See the Overview section for more details.


© 2006-2021 by Zend by Perforce. Made with by awesome contributors.

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