mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
17 lines
471 B
PHP
Executable File
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());
|