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

declare(strict_types=1);

/**
 * CLI エントリ: php bin/console <command> [args]
 */

if (PHP_SAPI !== 'cli') {
    exit(1);
}

$basePath = dirname(__DIR__);
require $basePath . '/vendor/autoload.php';

$container = App\Kernel\Application::bootstrap($basePath, null, App\Auth\Session::inMemory());
$console = new App\Console\Console($container, $basePath);
exit($console->run(array_slice($argv, 1)));
