-
The following form extensions have been deprecated and will be removed in Sylius 2.0:
Sylius\Bundle\AdminBundle\Form\Extension\CatalogPromotionScopeTypeExtension
Sylius\Bundle\AdminBundle\Form\Extension\CatalogPromotionActionTypeExtension
Sylius\Bundle\CoreBundle\Form\Extension\CustomerTypeExtension
Sylius\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\CatalogPromotionScopeType
andSylius\Bundle\AdminBundle\Form\Type\CatalogPromotionActionType
classes. -
The class
Sylius\Bundle\CoreBundle\Twig\StateMachineExtension
has been deprecated and will be removed in Sylius 2.0. UseSylius\Abstraction\StateMachine\Twig\StateMachineExtension
instead. -
The class
Sylius\Bundle\CoreBundle\Console\Command\ShowAvailablePluginsCommand
has been deprecated and will be removed in Sylius 2.0. -
The class
Sylius\Bundle\CoreBundle\Console\Command\Model\PluginInfo
has been deprecated and will be removed in Sylius 2.0. -
The class
Sylius\Bundle\CoreBundle\Form\EventSubscriber\AddUserFormSubscriber
has been deprecated and will be removed in Sylius 2.0. -
The class
Sylius\Bundle\ApiBundle\Filter\Doctrine\PromotionCouponPromotionFilter
has been deprecated and will be removed in Sylius 2.0. -
Extending
\InvalidArgumentException
bySylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHandException
andSylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHoldException
is deprecated, instead they will extend\RuntimeException
in Sylius 2.0. -
Statistics related deprecations:
- The class
Sylius\Bundle\AdminBundle\Provider\StatisticsDataProvider
and interfaceSylius\Bundle\AdminBundle\Provider\StatisticsDataProviderInterface
have been deprecated and will be removed in Sylius 2.0. UseSylius\Component\Core\Statistics\Provider\StatisticsProvider
andSylius\Component\Core\Statistics\Provider\StatisticsProviderInterface
instead. - The class
Sylius\Bundle\AdminBundle\Controller\Dashboard\StatisticsController
has been deprecated and will be removed in Sylius 2.0. - The route
sylius_admin_dashboard_statistics
has been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\DashboardStatistics
has been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\DashboardStatisticsProvider
and interfaceSylius\Component\Core\Dashboard\DashboardStatisticsProviderInterface
have been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\Interval
has been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\SalesDataProvider
and interfaceSylius\Component\Core\Dashboard\SalesDataProviderInterface
have been deprecated and will be removed in Sylius 2.0. - The class
Sylius\Component\Core\Dashboard\SalesSummary
and interfaceSylius\Component\Core\Dashboard\SalesSummaryInterface
have been deprecated and will be removed in Sylius 2.0.
- The class
-
The constructor signature of
Sylius\Bundle\AdminBundle\Action\ResendOrderConfirmationEmailAction
has 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, )
-
The following templating helpers and its interfaces have been deprecated and will be removed in Sylius 2.0:
Sylius\Bundle\MoneyBundle\Templating\Helper\ConvertMoneyHelper
Sylius\Bundle\MoneyBundle\Templating\Helper\ConvertMoneyHelperInterface
Sylius\Bundle\MoneyBundle\Templating\Helper\FormatMoneyHelper
Sylius\Bundle\MoneyBundle\Templating\Helper\FormatMoneyHelperInterface
-
The following constructor signatures have been changed:
Sylius\Bundle\MoneyBundle\Twig\ConvertMoneyExtension
use Sylius\Component\Currency\Converter\CurrencyConverterInterface; public function __construct( - private ConvertMoneyHelperInterface $helper, + private ConvertMoneyHelperInterface|CurrencyConverterInterface $helper, )
Sylius\Bundle\MoneyBundle\Twig\FormatMoneyExtension
use Sylius\Bundle\MoneyBundle\Formatter\MoneyFormatterInterface; public function __construct( - private FormatMoneyHelperInterface $helper, + private private FormatMoneyHelperInterface|MoneyFormatterInterface $helper, )