rector/compiler/bin/compile
2020-05-20 13:05:43 +02:00

17 lines
471 B
PHP
Executable File

#!/usr/bin/env php
<?php
declare(strict_types = 1);
use Rector\Compiler\Console\RectorCompilerConsoleApplication;
use Rector\Compiler\DependencyInjection\ContainerFactory;
require_once __DIR__ . '/../vendor/autoload.php';
$containerFactory = new ContainerFactory();
$container = $containerFactory->create();
/** @var RectorCompilerConsoleApplication $application */
$application = $container->get(RectorCompilerConsoleApplication::class);
exit($application->run());