|
|
@@ -1,8 +1,7 @@ |
|
|
|
#!/usr/bin/env php |
|
|
|
<?php declare(strict_types=1); |
|
|
|
|
|
|
|
use Symfony\Component\Console\Input\InputInterface; |
|
|
|
use Symfony\Component\Console\Output\OutputInterface; |
|
|
|
use Composer\XdebugHandler\XdebugHandler; |
|
|
|
use Symfony\Component\DependencyInjection\Container; |
|
|
|
use Symplify\EasyCodingStandard\Console\Application; |
|
|
|
use Symplify\PackageBuilder\Console\ThrowableRenderer; |
|
@@ -12,19 +11,17 @@ require_once __DIR__ . '/vendor/symplify/easy-coding-standard/bin/autoload.php'; |
|
|
|
// performance boost |
|
|
|
gc_disable(); |
|
|
|
|
|
|
|
$xdebug = new XdebugHandler('ecs', '--ansi'); |
|
|
|
$xdebug->check(); |
|
|
|
unset($xdebug); |
|
|
|
|
|
|
|
try { |
|
|
|
/** @var Container $container */ |
|
|
|
$container = require __DIR__ . '/vendor/symplify/easy-coding-standard/bin/container.php'; |
|
|
|
|
|
|
|
/** @var Application $application */ |
|
|
|
$application = $container->get(Application::class); |
|
|
|
|
|
|
|
/** @var InputInterface $input */ |
|
|
|
$input = $container->get(InputInterface::class); |
|
|
|
|
|
|
|
/** @var OutputInterface $output */ |
|
|
|
$output = $container->get(OutputInterface::class); |
|
|
|
exit($application->run($input, $output)); |
|
|
|
exit($application->run()); |
|
|
|
} catch (Throwable $throwable) { |
|
|
|
(new ThrowableRenderer())->render($throwable); |
|
|
|
exit(1); |
|
|
0 comments on commit
dd7bb01