We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65e2d3 commit 1911d6dCopy full SHA for 1911d6d
config/sets/symfony/symfony4/symfony43/symfony43-event-dispatcher.php
@@ -4,10 +4,15 @@
4
5
use Rector\Config\RectorConfig;
6
use Rector\Renaming\Rector\Name\RenameClassRector;
7
+use Rector\Symfony\Symfony43\Rector\MethodCall\MakeDispatchFirstArgumentEventRector;
8
9
return static function (RectorConfig $rectorConfig): void {
10
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
11
// has lowest priority, have to be last
12
'Symfony\Component\EventDispatcher\Event' => 'Symfony\Contracts\EventDispatcher\Event',
13
]);
14
+
15
+ $rectorConfig->rules([
16
+ MakeDispatchFirstArgumentEventRector::class,
17
+ ]);
18
};
0 commit comments