This commit is contained in:
TomasVotruba 2017-09-26 11:49:22 +02:00
parent 39cc722d92
commit 0d05e11bce
6 changed files with 3 additions and 7 deletions

View File

@ -6,7 +6,7 @@
*/
$possibleAutoloadPaths = [
__DIR__ . '/../vendor/autoload.php', // composer require ... | repository
__DIR__ . '/../../../vendor/autoload.php' // composer create-project
__DIR__ . '/../../../vendor/autoload.php', // composer create-project
];
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {

View File

@ -12,7 +12,6 @@ gc_disable();
// Require Composer autoload.php
require_once __DIR__ . '/bootstrap.php';
try {
// 1. Detect configuration
ConfigFilePathHelper::detectFromInput('rector', new ArgvInput);
@ -32,7 +31,6 @@ try {
$application = $container->get(Application::class);
$statusCode = $application->run();
exit($statusCode);
} catch (Throwable $throwable) {
$symfonyStyle = SymfonyStyleFactory::create();
$symfonyStyle->error($throwable->getMessage());

View File

@ -47,7 +47,7 @@ final class AppKernel extends Kernel
public function registerBundles(): array
{
return [
new RectorBundle
new RectorBundle,
];
}

View File

@ -32,7 +32,6 @@ final class RectorsExtension extends Extension
$this->rectorClassValidator->validate($rectors);
foreach ($rectors as $rector) {
$this->registerRectorIfNotYet($rector); // for custom rectors
// // add to active configuration
// dump($rector);

View File

@ -6,5 +6,4 @@ use Exception;
final class InvalidRectorClassException extends Exception
{
}

View File

@ -37,7 +37,7 @@ final class RectorClassValidator
}
throw new InvalidRectorClassException(sprintf(
'Rector "%s" is not supported. Use class that implements %s.',
'Rector "%s" is not supported. Use class that implements "%s".',
$rector,
RectorInterface::class
));