Hi All
I experiencing some weird behaviour when implementing a Custom Provider.
Basically if two parameters start with the same letter it generates an
error.
Is this Feature or is this a Bug?
My code is as follows:
<?php
require_once "Zend/Tool/Framework/Provider/Interface.php";
class My_Component_Foo implements Zend_Tool_Framework_Provider_Interface
{
public function test1($testvar)
{
echo 'Test1 Passed';
}
public function test2($testvar, $testvariable)
{
echo 'Test2 Passed';
}
}
Executed with the following commands
*Test 1*
*Command:*
./zf.sh test1 foo 1
*Output*
Test1 Passed
*Test 2*
*Command:*
./zf.sh test2 foo 1 2
*Output:*
* An Error Has Occurred **
** Option "-t" is being defined more than once. *
Zend Framework Command Line Console Tool v1.9.0a1
Details for action "Test2" and provider "Foo"
Foo
zf test2 foo testvar testvariable
What am I doing wrong?
Regards,
Nomolos