rector/bin/rector.php
2017-08-12 13:34:40 +02:00

19 lines
443 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();