This obvious dev dependency was part of Sylius requirements. In 1.11 we've moved it to proper place. However, it may lead to app break, as this container could be used in your Kernel, if you used Sylius-Standard as your template. In such a case, please update your src/Kernel.php
class as follows:
protected function getContainerBaseClass(): string
{
- if ($this->isTestEnvironment()) {
+ if ($this->isTestEnvironment() && class_exists(MockerContainer::class)) {
return MockerContainer::class;
}
return parent::getContainerBaseClass();
}
Due to the drop of support PHP 7.4
Sylius also will not support it since version 1.11
.
In Sylius we are using WinzouStateMachine where as example sylius_order
state machine has declared 14 callbacks on one state.
If this will be customized and number of callbacks comes up to 16 and higher - the priority of callbacks will become randomized.
Sylius state machine callbacks from now on will have priorities declared. Ending at -100 with step of 100.
Please note that those priorities are being executed in ascending order. You can find all the new priorities at
Sylius/Bundle/CoreBundle/Resources/config/app/state_machine
.
Be aware that if those priorities were customized, this would lead to problems. You should check and adjust priorities on your application.
We added MinimumPrice to channelPricings entity, this price should be taken into account when customizing any promotions in Sylius. All calculating and distributing services provided by default depends on MinimumPrice.
Service sylius.calendar
has been deprecated. Use Sylius\Calendar\Provider\DateTimeProviderInterface
instead.
Add a new bundle to your list of used bundles in config/bundles.php
if they are not already there:
```diff
+ Sylius\Calendar\SyliusCalendarBundle::class => ['all' => true],
```
- Service
sylius.behat.context.hook.calendar
has been removed, use in your suitesSylius\Calendar\Tests\Behat\Context\Hook\CalendarContext
instead. - Service
sylius.behat.context.setup.calendar
has been removed, use in your suitesSylius\Calendar\Tests\Behat\Context\Setup\CalendarContext
instead.
For changes according to the API v2, please visit API v2 upgrade file.