ZF-7747: zf create project-provider not working as expected, weak documentation for project providers
Description
How to reproduce: At shell:
# zf create project foo
Creating project at /path/foo
# cd /path/foo
# zf show project.info
Working with project located at: /path/foo
# zf create project-provider foo doit
Creating a project provider named foo in location /path/foo/providers/FooProvider.php
Updating project profile '/path/foo/.zfproject.xml'
# zf doit foo
An Error Has Occurred
Action 'doit' is not a valid action.
Expected: 'no error' (and no real output because the provider action has not been implemented)
Why is that? Why docs does not cover creating project-specific providers?
Let's query available actions of "foo" provider:
# zf ? foo
An Error Has Occurred
Provider 'foo' is not a valid provider.
Expected:
Zend Framework Command Line Console Tool v1.9.2
Actions supported by provider "Foo"
Foo
zf doit foo
The xml looks ok. It contains:
[...]
[...]
Inside /path/foo/providers/FooProvider.php we have:
<?php
require_once 'Zend/Tool/Project/Provider/Abstract.php';
require_once 'Zend/Tool/Project/Provider/Exception.php';
class FooProvider extends Zend_Tool_Project_Provider_Abstract
{
public function doit()
{
/** @todo Implementation */
}
}
Looks clear to me... yet - it doesn't work!
Comments
Posted by Ralph Schindler (ralph) on 2010-10-21T08:13:19.000+0000
Fixed in r23201 in trunk & r23202 in release branch 1.11 (as part of ZF-9397)