blob: 96a6b8ebaa85fd08b92d749ea492b8302604de3f [file] [log] [blame]
#!/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();