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.
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
.
Sylius 2.0 requires a minimum of PHP 8.2, and the plugin has been updated similarly.
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.
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
.