Skip to content

Commit

Permalink
update plugin skeleton installation - add remove classmap authoritati…
Browse files Browse the repository at this point in the history
…ve and add psr-4 entry for namespace in src/, add git hooks to automatically rebuild container
  • Loading branch information
speckmaier committed Oct 10, 2024
1 parent 6f025d9 commit 7de1124
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Composer/PluginSkeletonAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ private static function patchComposerJson(
unset($composerData['homepage']);
}

$composerData['autoload']['psr-4'] = [
$namespace.'\\' => 'src/',
];
$composerData['autoload']['classmap'] = ['vendor_prefixed'];

if (!empty($authorData)) {
$composerData['authors'] = [
$authorData
Expand Down

0 comments on commit 7de1124

Please sign in to comment.