Skip to content

Commit

Permalink
Replace slashes with backslash in namespace
Browse files Browse the repository at this point in the history
Fixes #70.
  • Loading branch information
franzliedke committed Nov 25, 2016
1 parent cce74f0 commit 863422a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Parts/Composer/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';

Expand Down

0 comments on commit 863422a

Please sign in to comment.