#!/usr/bin/env php
<?php

use Camelot\SmtpDevServer\Command\SmtpServerCommand;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\DependencyInjection\Container;

$run = function (): void {
    $builder = require_once __DIR__ . '/app.php';
    /** @var Container $container */
    $container = $builder();
    $command = $container->get(SmtpServerCommand::class);
    $command->run(new ArgvInput(), new ConsoleOutput());
};

$run();
