Permalink
Browse files

updated esc

  • Loading branch information...
dg committed Feb 5, 2019
1 parent 8654c66 commit dd7bb01beead8da85a145c327a27786806358a36
Showing with 6 additions and 9 deletions.
  1. +6 −9 ecs
15 ecs
@@ -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

Please sign in to comment.