ZF-7747: zf create project-provider not working as expected, weak documentation for project providers

Issue Type: Bug Created: 2009-09-01T07:57:57.000+0000 Last Updated: 2010-10-21T08:14:09.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Artur Bodera (joust) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: - ZF-9397



How to reproduce: At shell:

<pre class="highlight">
# zf create project foo
Creating project at /path/foo

# cd /path/foo
# zf show
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:

<pre class="highlight">
# zf ? foo
                       An Error Has Occurred
 Provider 'foo' is not a valid provider.


<pre class="highlight">
Zend Framework Command Line Console Tool v1.9.2
Actions supported by provider "Foo"
    zf doit foo

The xml looks ok. It contains:

<pre class="highlight">

Inside /path/foo/providers/FooProvider.php we have:

<pre class="highlight">

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!


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)

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.