Skip to content

Commit

Permalink
feat: Add renaming of BeforeDeleteEvent to EntityDeleteEvent for Shop…
Browse files Browse the repository at this point in the history
…ware 6.6
  • Loading branch information
aragon999 committed Feb 9, 2024
1 parent 16515fd commit 2963ba3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/v6.6/renaming.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;
use Rector\Renaming\ValueObject\RenameStaticMethod;
Expand All @@ -25,4 +26,11 @@
new RenameStaticMethod('Shopware\Core\Framework\DataAbstractionLayer\FieldSerializer\JsonFieldSerializer', 'encodeJson', 'Shopware\Core\Framework\Util\Json', 'encode'),
],
);

$rectorConfig->ruleWithConfiguration(
RenameClassRector::class,
[
'Shopware\\Core\\Framework\\DataAbstractionLayer\\Event\\BeforeDeleteEvent' => 'Shopware\\Core\\Framework\\DataAbstractionLayer\\Event\\EntityDeleteEvent',
]
);
};

0 comments on commit 2963ba3

Please sign in to comment.