mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-27 02:43:38 +02:00
20 lines
514 B
PHP
Executable File
20 lines
514 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
require_once __DIR__."/vendor/autoload.php";
|
|
|
|
use Monolog\Logger;
|
|
use LeeSherwood\Ejabberd\AuthenticationService;
|
|
use LeeSherwood\Ejabberd\CommandExecutors\mailcowCommandExecutor;
|
|
|
|
$logger = new Logger('ejabberdAuth');
|
|
|
|
$stdoutHandler = new Monolog\Handler\StreamHandler('/var/www/authentication/auth.log', Logger::INFO);
|
|
|
|
$logger->pushHandler($stdoutHandler);
|
|
|
|
$executor = new mailcowCommandExecutor();
|
|
|
|
$application = new AuthenticationService($logger, $executor);
|
|
|
|
$application->run();
|