mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-16 22:04:54 +01:00
19 lines
445 B
PHP
19 lines
445 B
PHP
<?php declare(strict_types=1);
|
|
|
|
use Rector\DependencyInjection\ContainerFactory;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
// Performance boost
|
|
gc_disable();
|
|
|
|
// Require Composer autoload.php
|
|
require_once __DIR__ . '/bootstrap.php';
|
|
|
|
// Build DI container
|
|
$container = (new ContainerFactory())->create();
|
|
|
|
// Run Console Application
|
|
/** @var Application $application */
|
|
$application = $container->get(Application::class);
|
|
$application->run();
|