Skip to content

Commit

Permalink
update to ECS 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 11, 2018
1 parent 8274a6e commit eb32e4a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"require": {
"php": "^7.1",
"symplify/easy-coding-standard": "~3.1.2"
"symplify/easy-coding-standard": "^3.2"
},
"require-dev": {
"tracy/tracy": "^2.4"
Expand Down
30 changes: 28 additions & 2 deletions ecs
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
#!/usr/bin/env php
<?php
<?php declare(strict_types=1);

require __DIR__ . '/vendor/symplify/easy-coding-standard/bin/easy-coding-standard.php';
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\Container;
use Symplify\EasyCodingStandard\Console\Application;
use Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;

// performance boost
gc_disable();

try {
/** @var Container $container */
$container = require __DIR__ . '/vendor/symplify/easy-coding-standard/bin/ecs-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));
} catch (Throwable $throwable) {
$symfonyStyle = SymfonyStyleFactory::create();
$symfonyStyle->error($throwable->getMessage());
exit(1);
}

0 comments on commit eb32e4a

Please sign in to comment.