Skip to content

Commit fc07e40

Browse files
committed
Internal: Avoid unnecessary use of global in migration of e-mail settings
1 parent c73bef7 commit fc07e40

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/CoreBundle/Migrations/Schema/V200/Version20250721200725.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ public function up(Schema $schema): void
2020

2121
$legacyMailConfig = file_exists($oldMailConfPath);
2222

23-
if ($legacyMailConfig) {
24-
include $oldMailConfPath;
25-
26-
global $platform_email;
27-
}
28-
2923
$envFile = $projectDir.'/.env';
3024

3125
$dotenv = new Dotenv();
@@ -68,8 +62,8 @@ public function up(Schema $schema): void
6862
}
6963

7064
if ($legacyMailConfig) {
65+
include $oldMailConfPath;
7166
$settings['mailer_exclude_json'] = $platform_email['EXCLUDE_JSON'] ?? false;
72-
7367
$dkim = [
7468
'enable' => $platform_email['DKIM'] ?? false,
7569
'selector' => $platform_email['DKIM_SELECTOR'] ?? '',

0 commit comments

Comments
 (0)