authenticator 515 B

12345678910111213141516171819
  1. #!/usr/bin/env php
  2. <?php
  3. require_once __DIR__."/vendor/autoload.php";
  4. use Monolog\Logger;
  5. use LeeSherwood\Ejabberd\AuthenticationService;
  6. use LeeSherwood\Ejabberd\CommandExecutors\mailcowCommandExecutor;
  7. $logger = new Logger('ejabberdAuth');
  8. $stdoutHandler = new Monolog\Handler\StreamHandler('/var/www/authentication/auth.log', Logger::DEBUG);
  9. $logger->pushHandler($stdoutHandler);
  10. $executor = new mailcowCommandExecutor();
  11. $application = new AuthenticationService($logger, $executor);
  12. $application->run();