Issue

ZF2-90: Call to undefined method Zend\Code\Generator\FileGeneratorRegistry::registerFileCodeGenerator()

Issue Type: Bug Created: 2011-10-27T13:13:59.000+0000 Last Updated: 2012-05-31T15:52:07.000+0000 Status: Closed Fix version(s): Reporter: Constantin Ehrenstein (skiller) Assignee: Adam Lundrigan (adamlundrigan) Tags: Related issues: - ZF2-89

Attachments:

Description

When trying to create a ZF2 project from the CLI (zf create project .), I get this error:

Creating project at /path/to/project/directory Note: This command created a web project, for more information setting up your VHOST, please see docs/README

Fatal error: Call to undefined method Zend\Code\Generator\FileGeneratorRegistry::registerFileCodeGenerator() in /Applications/ZendFramework2beta/library/Zend/Tool/Project/Context/Zf/ControllerFile.php on line 183

Call Stack: 0.0013 801320 1. {main}() /Applications/ZendFramework2beta/bin/zf.php:0 0.0014 801320 2. ZF::main() /Applications/ZendFramework2beta/bin/zf.php:636 0.0033 922224 3. ZF->run() /Applications/ZendFramework2beta/bin/zf.php:74 0.0033 922224 4. ZF->_runTool() /Applications/ZendFramework2beta/bin/zf.php:117 0.0372 1247416 5. Zend\Tool\Framework\Client\AbstractClient->dispatch() /Applications/ZendFramework2beta/bin/zf.php:612 0.1906 6634848 6. Zend\Tool\Framework\Client\AbstractClient->_handleDispatch() /Applications/ZendFramework2beta/library/Zend/Tool/Framework/Client/AbstractClient.php:230 0.1907 6635584 7. Zend\Tool\Framework\Client\AbstractClient->_handleDispatchExecution() /Applications/ZendFramework2beta/library/Zend/Tool/Framework/Client/AbstractClient.php:303 0.1907 6636024 8. call_user_func_array() /Applications/ZendFramework2beta/library/Zend/Tool/Framework/Client/AbstractClient.php:309 0.1907 6636544 9. Zend\Tool\Project\Provider\Project->create() /Applications/ZendFramework2beta/library/Zend/Tool/Framework/Client/AbstractClient.php:309 0.2250 6953616 10. Zend\Tool\Project\Profile\Resource\Resource->create() /Applications/ZendFramework2beta/library/Zend/Tool/Project/Provider/Project.php:107 0.2250 6953880 11. Zend\Tool\Project\Profile\Resource\Resource->__call() /Applications/ZendFramework2beta/library/Zend/Tool/Project/Provider/Project.php:107 0.2250 6954320 12. call_user_func_array() /Applications/ZendFramework2beta/library/Zend/Tool/Project/Profile/Resource/Resource.php:253 0.2250 6954568 13. Zend\Tool\Project\Context\Filesystem\File->create() /Applications/ZendFramework2beta/library/Zend/Tool/Project/Profile/Resource/Resource.php:253 0.2250 6954720 14. Zend\Tool\Project\Context\Zf\ControllerFile->getContents() /Applications/ZendFramework2beta/library/Zend/Tool/Project/Context/Filesystem/File.php:137

Note: since neither Zend\Tool nor Zend\Console are in the Standard Distribution, I had to amend it myself. I took the version(s) from the ZendFramework2 Status page, but maybe I didn't get the right/latest version.

Comments

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

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

Closing as "Wont' Fix" (See Matthew's comment on ZF2-103 here)

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts