CLI Base App
This commit is contained in:
16
cli/setup/settings/01_env.php
Normal file
16
cli/setup/settings/01_env.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
return [
|
||||
'email' => function() {
|
||||
$data = [
|
||||
'host' => $_ENV['EMAIL_HOST'],
|
||||
'username' => $_ENV['EMAIL_USERNAME'],
|
||||
'password' => $_ENV['EMAIL_PASSWORD'],
|
||||
'folder' => $_ENV['EMAIL_FOLDER'],
|
||||
'attachments' => $_ENV['ATTACHMENTS_FOLDER'],
|
||||
];
|
||||
if (isset($_ENV['EMAIL_PORT'])) {
|
||||
$data['port'] = $_ENV['EMAIL_PORT'];
|
||||
}
|
||||
return json_decode(json_encode($data));
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user