From 863422ab45f7a9cd43c501d989b8ca8086545a58 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 25 Nov 2016 18:29:36 +0100 Subject: [PATCH] Replace slashes with backslash in namespace Fixes #70. --- src/Parts/Composer/Part.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Parts/Composer/Part.php b/src/Parts/Composer/Part.php index 7774cd3..efc7a75 100644 --- a/src/Parts/Composer/Part.php +++ b/src/Parts/Composer/Part.php @@ -25,6 +25,7 @@ public function setupPackage($composer, Directory $target) ); // Normalize and store the namespace + $namespace = str_replace('/', '\\', $namespace); $namespace = rtrim($namespace, '\\'); @$composer->autoload->{'psr-4'}->{"$namespace\\"} = 'src/';