3.8 KiB
UPGRADE FROM v1.13.X TO v1.14.0
Deprecations
-
The following form extensions have been deprecated and will be removed in Sylius 2.0:
Sylius\Bundle\AdminBundle\Form\Extension\CatalogPromotionScopeTypeExtensionSylius\Bundle\AdminBundle\Form\Extension\CatalogPromotionActionTypeExtensionSylius\Bundle\CoreBundle\Form\Extension\CustomerTypeExtensionSylius\Bundle\CoreBundle\Form\Extension\LocaleTypeExtension
Starting with this version, form types will be extended using the parent form instead of through form extensions, like it's done in the
Sylius\Bundle\AdminBundle\Form\Type\CatalogPromotionScopeTypeandSylius\Bundle\AdminBundle\Form\Type\CatalogPromotionActionTypeclasses. -
The class
Sylius\Bundle\CoreBundle\Twig\StateMachineExtensionhas been deprecated and will be removed in Sylius 2.0. UseSylius\Abstraction\StateMachine\Twig\StateMachineExtensioninstead. -
The class
Sylius\Bundle\CoreBundle\Console\Command\ShowAvailablePluginsCommandhas been deprecated and will be removed in Sylius 2.0. -
The class
Sylius\Bundle\CoreBundle\Console\Command\Model\PluginInfohas been deprecated and will be removed in Sylius 2.0. -
The class
Sylius\Bundle\CoreBundle\Form\EventSubscriber\AddUserFormSubscriberhas been deprecated and will be removed in Sylius 2.0. -
The class
Sylius\Bundle\ApiBundle\Filter\Doctrine\PromotionCouponPromotionFilterhas been deprecated and will be removed in Sylius 2.0. -
Extending
\InvalidArgumentExceptionbySylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHandExceptionandSylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHoldExceptionis deprecated, instead they will extend\RuntimeExceptionin Sylius 2.0. -
Statistics related deprecations:
- The class
Sylius\Bundle\AdminBundle\Provider\StatisticsDataProviderand interfaceSylius\Bundle\AdminBundle\Provider\StatisticsDataProviderInterfacehave been deprecated and will be removed in Sylius 2.0. UseSylius\Component\Core\Statistics\Provider\StatisticsProviderandSylius\Component\Core\Statistics\Provider\StatisticsProviderInterfaceinstead. - The class
Sylius\Bundle\AdminBundle\Controller\Dashboard\StatisticsControllerhas been deprecated and will be removed in Sylius 2.0. - The route
sylius_admin_dashboard_statisticshas been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\DashboardStatisticshas been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\DashboardStatisticsProviderand interfaceSylius\Component\Core\Dashboard\DashboardStatisticsProviderInterfacehave been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\Intervalhas been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\SalesDataProviderand interfaceSylius\Component\Core\Dashboard\SalesDataProviderInterfacehave been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\SalesSummaryand interfaceSylius\Component\Core\Dashboard\SalesSummaryInterfacehave been deprecated and will be removed in Sylius 2.0.
- The class
-
The constructor signature of
Sylius\Bundle\AdminBundle\Action\ResendOrderConfirmationEmailActionhas been changed:use Symfony\Component\Routing\RouterInterface; public function __construct( private OrderRepositoryInterface $orderRepository, private OrderEmailManagerInterface|ResendOrderConfirmationEmailDispatcherInterface $orderEmailManager, private CsrfTokenManagerInterface $csrfTokenManager, private RequestStack|SessionInterface $requestStackOrSession, + private ?RouterInterface $router = null, )