rector/bin/rector
2019-02-02 01:33:50 +01:00

25 lines
604 B
PHP
Executable File

#!/usr/bin/env php
<?php declare(strict_types=1);
use Composer\XdebugHandler\XdebugHandler;
use Psr\Container\ContainerInterface;
use Rector\Console\Application;
@ini_set('memory_limit', '-1'); // @ intentionally: continue anyway
// Performance boost
gc_disable();
// Require Composer autoload.php
require_once __DIR__ . '/bootstrap.php';
$xdebug = new XdebugHandler('rector', '--ansi');
$xdebug->check();
unset($xdebug);
/** @var ContainerInterface $container */
$container = require_once __DIR__ . '/container.php';
$application = $container->get(Application::class);
exit($application->run());