Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 2d234df

Browse files
committed
ENH: refs #256. Web API calls will now work in a scalable fashion
1 parent d42d241 commit 2d234df

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

modules/api/controllers/IndexController.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,12 @@ private function _computeApiCallback($method_name, $apiMethodPrefix)
9898
{
9999
$moduleName = array_shift($tokens);
100100
$moduleMethod = implode('', $tokens);
101-
$retVal = Zend_Registry::get('notifier')->callback('CALLBACK_API_METHOD_'.strtoupper($moduleName), array());
102-
// print_r($retVal);
103-
// exit;
104-
/*foreach($additionalMethods as $module => $methods)
101+
$retVal = Zend_Registry::get('notifier')->callback('CALLBACK_API_METHOD_'.strtoupper($moduleName), array('methodName' => $moduleMethod));
102+
foreach($retVal as $module => $method)
105103
{
106-
foreach($methods as $method)
107-
{
108-
$this->helpContent[$apiMethodPrefix.strtolower($module).'.'.$method['name']] = $method['help'];
109-
$this->apicallbacks[$apiMethodPrefix.strtolower($module).'.'.$method['name']] = array($method['callbackObject'], $method['callbackFunction']);
110-
}
111-
}*/
104+
$this->apicallbacks[$method_name] = array($method['object'], $method['method']);
105+
break;
106+
}
112107
}
113108
}
114109

0 commit comments

Comments
 (0)