HOR-1254 CLONE - Plugin REST service is not properly registered in a Windows server

c Fix replacement of path separator in a rest uri.
This commit is contained in:
davidcallizaya
2016-06-08 15:50:24 -04:00
parent 617b66f2b1
commit 2dd1306d4a

View File

@@ -1425,7 +1425,7 @@ class PMPluginRegistry
foreach ($classesList as $classFile) {
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
$ns = str_replace(
DIRECTORY_SEPARATOR,
'/',
'\\',
str_replace('.php', '', str_replace($baseSrcPluginPath, '', $classFile))
);