craftcms / rector

Rector rules for updating plugins and modules to Craft CMS 4.
19 stars 6 forks source link

`assetTransforms` service is now `imageTransforms` service #1

Closed engram-design closed 2 years ago

engram-design commented 2 years ago

Leaving a quick note that the following should be handled:

Craft::$app->getAssetTransforms()->...

to

Craft::$app->getImageTransforms()->...

If I figure out how to make custom rules, I'll add a PR.

brandonkelly commented 2 years ago

It would be pretty easily doable to make that one single change, but there’s more breaking changes within the service than just its name. So decided this is better off being done manually.