MontealegreLuis/php-testing-tools

View on GitHub
ui/messaging/bin/console.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);
/**
 * PHP version 7.4
 *
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
 */

require __DIR__ . '/../vendor/autoload.php';

use Adapters\Symfony\Application\DependencyInjection\ContainerFactory;
use Application\BasePath;
use Application\Environment;
use Ewallet\Ui\Console\EwalletApplication;

(static function (): void {
    $basePath = new BasePath(new SplFileInfo(__DIR__ . '/../'));
    $environment = Environment::fromGlobals($basePath);
    $application = EwalletApplication::fromContainer(ContainerFactory::new($basePath, $environment));
    $application->run();
})();