2017-07-15 17:01:21 +00:00
|
|
|
#!/usr/bin/env php
|
2017-12-30 19:51:37 +00:00
|
|
|
<?php declare(strict_types=1);
|
2017-07-15 17:01:21 +00:00
|
|
|
|
2018-11-06 22:12:02 +00:00
|
|
|
use Composer\XdebugHandler\XdebugHandler;
|
2018-06-13 08:33:45 +00:00
|
|
|
use Psr\Container\ContainerInterface;
|
2017-12-28 20:31:37 +00:00
|
|
|
use Rector\Console\Application;
|
2017-07-15 17:01:21 +00:00
|
|
|
|
2018-12-20 19:23:08 +00:00
|
|
|
@ini_set('memory_limit', '-1'); // @ intentionally: continue anyway
|
|
|
|
|
2017-12-28 20:31:37 +00:00
|
|
|
// Performance boost
|
|
|
|
gc_disable();
|
|
|
|
|
|
|
|
// Require Composer autoload.php
|
2018-07-17 17:36:48 +00:00
|
|
|
require_once __DIR__ . '/bootstrap.php';
|
2017-12-28 20:31:37 +00:00
|
|
|
|
2018-11-06 22:12:02 +00:00
|
|
|
$xdebug = new XdebugHandler('rector', '--ansi');
|
|
|
|
$xdebug->check();
|
|
|
|
unset($xdebug);
|
|
|
|
|
2019-02-02 00:33:50 +00:00
|
|
|
/** @var ContainerInterface $container */
|
|
|
|
$container = require_once __DIR__ . '/container.php';
|
2017-12-28 20:31:37 +00:00
|
|
|
|
2019-02-02 00:33:50 +00:00
|
|
|
$application = $container->get(Application::class);
|
|
|
|
exit($application->run());
|