From 6f5272717f1a28bc5fb26af925de2437273f5b64 Mon Sep 17 00:00:00 2001 From: Roland Rusch Date: Thu, 13 Jul 2023 20:24:16 +0200 Subject: [PATCH 1/2] #1 OpenXE does not run on Windows --- classes/Core/Installer/Psr4ClassNameResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Core/Installer/Psr4ClassNameResolver.php b/classes/Core/Installer/Psr4ClassNameResolver.php index ed9202ca..4baf8682 100644 --- a/classes/Core/Installer/Psr4ClassNameResolver.php +++ b/classes/Core/Installer/Psr4ClassNameResolver.php @@ -35,7 +35,7 @@ final class Psr4ClassNameResolver { // Normalize inputs $prefix = trim($prefix, '\\') . '\\'; - $baseDir = rtrim($baseDir, '/') . '/'; + $baseDir = rtrim($baseDir, '/\\') . DIRECTORY_SEPARATOR; $this->prefixes[$prefix] = $baseDir; } From ca5e5c52a154ae8f66e18cbd57bb2543ed3fc6bb Mon Sep 17 00:00:00 2001 From: Roland Rusch Date: Fri, 14 Jul 2023 08:53:01 +0200 Subject: [PATCH 2/2] #1 OpenXE does not run on Windows --- classes/bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/bootstrap.php b/classes/bootstrap.php index 556cf660..d8bf6a3a 100644 --- a/classes/bootstrap.php +++ b/classes/bootstrap.php @@ -30,10 +30,10 @@ $factoryServiceMap = @include $serviceCacheFile; if (!is_file($serviceCacheFile)) { - // Installer ausführen wenn ServiceMap nicht vorhanden ist + // Installer ausführen, wenn ServiceMap nicht vorhanden ist $resolver = new Psr4ClassNameResolver(); $resolver->addNamespace('Xentral\\', __DIR__); - $resolver->excludeFile(__DIR__ . '/bootstrap.php'); + $resolver->excludeFile(__DIR__ . DIRECTORY_SEPARATOR . 'bootstrap.php'); $generator = new ClassMapGenerator($resolver, __DIR__); $installer = new Installer($generator, $resolver);