rector/compiler/bin/compile

17 lines
471 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
declare(strict_types = 1);
2020-02-27 12:29:22 +01:00
use Rector\Compiler\Console\RectorCompilerConsoleApplication;
2020-05-20 12:57:32 +02:00
use Rector\Compiler\DependencyInjection\ContainerFactory;
require_once __DIR__ . '/../vendor/autoload.php';
2020-02-27 12:29:22 +01:00
$containerFactory = new ContainerFactory();
$container = $containerFactory->create();
/** @var RectorCompilerConsoleApplication $application */
$application = $container->get(RectorCompilerConsoleApplication::class);
exit($application->run());