Compare commits
No commits in common. "e2d2ff72bb9f2111199efa27da1b48c5924344c6" and "ec250be35b7152a362a1d0ea4e878e790333f82d" have entirely different histories.
e2d2ff72bb
...
ec250be35b
@ -4,12 +4,12 @@ use function DI\autowire, DI\create, DI\get;
|
|||||||
|
|
||||||
use TheBugs\Email\EmailConfiguration,
|
use TheBugs\Email\EmailConfiguration,
|
||||||
TheBugs\Email\MailerInterface,
|
TheBugs\Email\MailerInterface,
|
||||||
TheBugs\Email\SymfonyMailer;
|
TheBugs\Email\SwiftMailer;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
EmailConfiguration::class => function($c) {
|
EmailConfiguration::class => function($c) {
|
||||||
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
|
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
|
||||||
$email->smtpHost = getenv('SMTP_HOSTNAME');
|
$email->smtpHost = getenv('SMTP_HOST');
|
||||||
$email->smtpPort = getenv('SMTP_PORT');
|
$email->smtpPort = getenv('SMTP_PORT');
|
||||||
$email->smtpUsername = getenv('SMTP_USERNAME');
|
$email->smtpUsername = getenv('SMTP_USERNAME');
|
||||||
$email->smtpPassword = getenv('SMTP_PASSWORD');
|
$email->smtpPassword = getenv('SMTP_PASSWORD');
|
||||||
@ -20,5 +20,5 @@ return [
|
|||||||
return $email;
|
return $email;
|
||||||
},
|
},
|
||||||
|
|
||||||
MailerInterface::class => autowire(SymfonyMailer::class),
|
MailerInterface::class => autowire(SwiftMailer::class),
|
||||||
];
|
];
|
||||||
|
@ -22,10 +22,6 @@ DEFAULT_LOCAL = "fr_CA.UTF-8"
|
|||||||
DEFAULT_TIME = "fr.UTF-8"
|
DEFAULT_TIME = "fr.UTF-8"
|
||||||
DEFAULT_TIME_FALLBACK = "french.UTF-8"
|
DEFAULT_TIME_FALLBACK = "french.UTF-8"
|
||||||
|
|
||||||
CSSLSJ_API_URL = "http://api-dev.cslsj.qc.ca"
|
|
||||||
CSSLSJ_API_USERNAME = "dev"
|
|
||||||
CSSLSJ_API_PASSWORD = "dev"
|
|
||||||
|
|
||||||
# MS Authentication
|
# MS Authentication
|
||||||
# MS_OAUTH_CLIENT_ID = ""
|
# MS_OAUTH_CLIENT_ID = ""
|
||||||
# MS_OAUTH_CLIENT_SECRET = ""
|
# MS_OAUTH_CLIENT_SECRET = ""
|
||||||
|
@ -17,14 +17,6 @@ return [
|
|||||||
'application_name' => "",
|
'application_name' => "",
|
||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
|
||||||
'auth' => [
|
|
||||||
'type' => \CSLSJ\Api\AuthType::AUTH_HEADER_BASIC,
|
|
||||||
'username' => getenv('CSSLSJ_API_USERNAME'),
|
|
||||||
'password' => getenv('CSSLSJ_API_PASSWORD'),
|
|
||||||
]
|
|
||||||
],
|
|
||||||
|
|
||||||
'ulmus' => [
|
'ulmus' => [
|
||||||
'connections' => [
|
'connections' => [
|
||||||
'default' => [
|
'default' => [
|
||||||
|
@ -50,13 +50,9 @@ return [
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
CSLSJ\Api\Client::class => create(CSLSJ\Api\Client::class)->constructor(get('api.authentication'), getenv('CSSLSJ_API_URL')),
|
|
||||||
|
|
||||||
'api.authentication' => function ($c) { return $c->get('config')['api']['auth']; },
|
|
||||||
|
|
||||||
EmailConfiguration::class => function($c) {
|
EmailConfiguration::class => function($c) {
|
||||||
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
|
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
|
||||||
$email->smtpHost = getenv('SMTP_HOSTNAME');
|
$email->smtpHost = getenv('SMTP_HOST');
|
||||||
$email->smtpPort = getenv('SMTP_PORT');
|
$email->smtpPort = getenv('SMTP_PORT');
|
||||||
$email->smtpUsername = getenv('SMTP_USERNAME');
|
$email->smtpUsername = getenv('SMTP_USERNAME');
|
||||||
$email->smtpPassword = getenv('SMTP_PASSWORD');
|
$email->smtpPassword = getenv('SMTP_PASSWORD');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user