#!/usr/bin/env php
<?php
// @link https://www.tomasvotruba.cz/blog/2018/08/02/5-gotchas-of-the-bin-file-in-php-cli-applications/

if (PHP_SAPI !== 'cli') {
    return;
}

gc_disable(); // performance boost

require_once dirname(__DIR__) . '/config/bootstrap.php';

use Bartlett\CompatInfo\Console\ApplicationInterface;

/** @var \Symfony\Component\DependencyInjection\ContainerBuilder $container */
$container = require dirname(__DIR__) . '/config/container.php';

$app = $container->get(ApplicationInterface::class);
$app->setContainer($container);
exit($app->run());
