Skip to content

Commit

Permalink
update rector config
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Nov 12, 2023
1 parent 777f385 commit d38bf68
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions exampleTemplateClass/rector.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?php

include __DIR__.'/../vendor/autoload.php';

use League\Plates\RectorizeTemplate;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__.'/Templates/Layout.php',
]);
$rectorConfig->rule(RectorizeTemplate::class);
};

// vendor/bin/rector process exampleTemplateClass/Templates --config ./exampleTemplateClass/rector.php
// vendor/bin/rector process exampleTemplateClass/Templates --config ./exampleTemplateClass/rector.php --debug
// vendor/bin/rector process exampleTemplateClass/Templates --config ./vendor/league/plates/exampleTemplateClass/rector.php

0 comments on commit d38bf68

Please sign in to comment.