Adding more rest end points and finishing the save load configuration feature.

This commit is contained in:
Gustavo Cruz
2015-03-02 17:42:19 -04:00
parent 92245527cf
commit c7208a6463
5 changed files with 84 additions and 19 deletions

View File

@@ -345,7 +345,7 @@ class WebApplication
foreach ($featureApiClassList as $classFile) {
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
$relClassPath = str_replace('.php', '', str_replace($servicesDir, '', $classFile));
$namespace = '\\ProcessMaker\\Services\\Api\\'.basename($classFile, '.php');
$namespace = '\\ProcessMaker\\Services\\Api\\' . basename($classFile, '.php');
$namespace = strpos($namespace, "//") === false? $namespace: str_replace("//", '', $namespace);
require_once $classFile;
$this->rest->addAPIClass($namespace);