Skip to content

Commit

Permalink
Remove symfony/mailer configuration from docker-compose.override.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsverkoyen committed Sep 16, 2024
1 parent 149aa5c commit 387a68a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Skeleton/PostCreateProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,18 @@ private static function reconfigureApplication(Event $event): void
'',
$content
);
// remove symfony/mailer configuration
$content = preg_replace(
'|###> symfony/mailer ###.*###< symfony/mailer ###|mUs',
'',
$content
);
// remove empty volumes element
$content = preg_replace(
'|services:\n|mUs',
'',
$content
);
$content = trim($content) . PHP_EOL;
file_put_contents($projectDir . '/docker-compose.override.yml', $content);
}
Expand Down

0 comments on commit 387a68a

Please sign in to comment.