Skip to content

Commit

Permalink
[FEATURE] Slightly improve typo3-init command (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon authored Feb 15, 2024
1 parent f12a233 commit 37f9230
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/typo3-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
if ($projectPhpDirectories === []) {
$projectPhpDirectories[] = 'src';
}

// Filter some blacklisted folders
$projectPhpDirectories = array_filter(
$projectPhpDirectories,
fn (string $projectDirectory) => $projectDirectory !== 'public'
);

$projectPhpDirectoriesContents = '';
foreach ($projectPhpDirectories as $projectPhpDirectory) {
$projectPhpDirectoriesContents .= " __DIR__ . '/" . $projectPhpDirectory . "'," . \PHP_EOL;
Expand Down

0 comments on commit 37f9230

Please sign in to comment.