From 2e01a03ce6ba473ce8a93c505b94ecd259f6a60f Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Fri, 10 Nov 2023 01:46:46 +0800 Subject: [PATCH] No server path --- packages/reactor/src/ReactorPackage.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/reactor/src/ReactorPackage.php b/packages/reactor/src/ReactorPackage.php index 84325bdaf..01e53ee31 100644 --- a/packages/reactor/src/ReactorPackage.php +++ b/packages/reactor/src/ReactorPackage.php @@ -71,10 +71,7 @@ function ( protected function addMainFileToServers(string $engine, string $name, string $file, IOInterface $io): void { - $filePath = Str::removeLeft( - Path::normalize(WINDWALKER_SERVERS . '/' . $file, '/'), - Path::normalize(WINDWALKER_ROOT, '/') - ); + $filePath = 'servers/' . $file; $filePath = ltrim($filePath, '/'); $registryFile = WINDWALKER_RESOURCES . '/registry/servers.php';