mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
24 lines
605 B
PHP
Executable File
24 lines
605 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php declare(strict_types=1);
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
use Rector\Console\Application;
|
|
use Symplify\PackageBuilder\Console\ThrowableRenderer;
|
|
|
|
// Performance boost
|
|
gc_disable();
|
|
|
|
// Require Composer autoload.php
|
|
require_once __DIR__ . '/bootstrap.php';
|
|
|
|
try {
|
|
/** @var ContainerInterface $container */
|
|
$container = require_once __DIR__ . '/container.php';
|
|
|
|
$application = $container->get(Application::class);
|
|
exit($application->run());
|
|
} catch (Throwable $throwable) {
|
|
(new ThrowableRenderer())->render($throwable);
|
|
exit($throwable->getCode());
|
|
}
|