Skip to content

Commit e69af50

Browse files
authored
Merge pull request #266 from dotkernel/issue-256
Use mail.local instead of global
2 parents 5b3d518 + 39cd413 commit e69af50

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎bin/composer-post-install-script.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ function getEnvironment(): string
4040
'destination' => 'config/autoload/local.php',
4141
'environment' => [ENVIRONMENT_DEVELOPMENT, ENVIRONMENT_PRODUCTION],
4242
],
43+
[
44+
'source' => 'config/autoload/mail.local.php.dist',
45+
'destination' => 'config/autoload/mail.local.php',
46+
'environment' => [ENVIRONMENT_DEVELOPMENT, ENVIRONMENT_PRODUCTION],
47+
],
4348
[
4449
'source' => 'config/autoload/local.test.php.dist',
4550
'destination' => 'config/autoload/local.test.php',
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/**
4+
* Mail configuration.
5+
*
6+
* Duplicate this file as `mail.local.php` and change its settings as required.
7+
* `mail.local.php` is ignored by git and safe to use for sensitive data like SMTP credentials.
8+
*/
9+
310
declare(strict_types=1);
411

512
$contactEmail = 'example@mail.com';

0 commit comments

Comments
 (0)