Improving and Refactoring some task to dispatch multipart request on REST API Dispatching routine (update)

This commit is contained in:
Erik Amaru Ortiz
2014-07-08 11:28:22 -04:00
parent 8cfa67ca6d
commit a120664eea

View File

@@ -303,6 +303,7 @@ class WebApplication
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
$relClassPath = str_replace('.php', '', str_replace($servicesDir, '', $classFile));
$namespace = '\\ProcessMaker\\Services\\' . str_replace(DS, '\\', $relClassPath);
$namespace = strpos($namespace, "//", '', $namespace);
if (! class_exists($namespace)) {
require_once $classFile;