mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-27 21:23:31 +00:00
25 lines
604 B
PHP
Executable File
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());
|