Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 1.03 KB

UPGRADE-3.0.md

File metadata and controls

41 lines (22 loc) · 1.03 KB

Upgrade 2.x to 3.0

Upgrade

Upgrading might be as simple as running the following command:

$ composer require stefandoorn/sitemap-plugin:^3.0

Keep reading to understand the main changes that happened as part of the 3.0 release.

Main changes

Sylius

The plugin has been upgraded to work with Sylius ^2.0.

Also, the testing structure has been updated as much possible to reflect PluginSkeleton^2.0.

PHP

Sylius 2.0 requires a minimum of PHP 8.2, and the plugin has been updated similarly.

Filesystem

Since Nov, 2022 Sylius uses Flysystem as it's default filesystem implementation.

From Sylius 2.0, this driver has become the default.

The plugin has been updated to use Flysystem.

If you did make configuration changes, have a look at src/Resources/config/config.yaml for the new configuration.

Breaking change

Filesystem/Reader::has has been removed, as we can rely on Flysystem exceptions now.

As a side benefit, this also saves an I/O operation.

AbstractController::$reader has been made private.