Details
Description
It is impossible to set same method name in two different services:
If I set getMenu in ServiceA and in ServiceB I can't call ServiceA.getMenu or ServiceB.getMenu.
The Zend_Amf_Server_Exception message is 'Duplicate method registered: getMenu'
My gateway.php
$server = new Zend_Amf_Server(); $server->setProduction(true); $server->addDirectory(dirname(__FILE__) .'/services/'); $server->setClass('ServiceA'); $server->setClass('ServiceB'); echo $server->handle();
My two classes:
ServiceA.php
<?php
class ServiceA {
function __construct() {
//Construction...
}
/**
* @return string
*/
public function getMenu( )
{
return 'myMenuA';
}
}
?>
ServiceB.php
<?php
class ServiceB {
function __construct() {
//Construction...
}
/**
* @return string
*/
public function getMenu( )
{
return 'myMenuB';
}
}
?>
I have the issue reproduce and working on a solution. Thanks for submitting the bug.