Skip to content

Commit

Permalink
Unify modifications from scaffold-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahe committed May 20, 2020
1 parent e0ea896 commit ff695d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/ScaffoldThemeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ protected function generateTheme( $composer, $io, $themeName, $themePath, $theme

try {
$composerJson = $composerFile->read();
$composerJson['autoload']['psr-4'][$themeNamespace."\\"] = str_replace( '//', '/', $themePath.'/inc/' );
$composerJson['autoload']['psr-4'][$themeNamespace."\\"] = rtrim( $themePath, '/' ) .'/inc/';


$composerFile->write( $composerJson );
Expand Down

0 comments on commit ff695d5

Please sign in to comment.