blob: 96a6b8ebaa85fd08b92d749ea492b8302604de3f [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001#!/usr/bin/env php
2<?php
3require_once __DIR__."/vendor/autoload.php";
4
5use Monolog\Logger;
6use LeeSherwood\Ejabberd\AuthenticationService;
7use LeeSherwood\Ejabberd\CommandExecutors\mailcowCommandExecutor;
8
9$logger = new Logger('ejabberdAuth');
10
11$stdoutHandler = new Monolog\Handler\StreamHandler('/var/www/authentication/auth.log', Logger::INFO);
12
13$logger->pushHandler($stdoutHandler);
14
15$executor = new mailcowCommandExecutor();
16
17$application = new AuthenticationService($logger, $executor);
18
19$application->run();