Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 4.91 KB

UPGRADE-1.14.md

File metadata and controls

78 lines (60 loc) · 4.91 KB

UPGRADE FROM v1.13.X TO v1.14.0

Deprecations

  1. 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 and Sylius\Bundle\AdminBundle\Form\Type\CatalogPromotionActionType classes.

  2. The class Sylius\Bundle\CoreBundle\Twig\StateMachineExtension has been deprecated and will be removed in Sylius 2.0. Use Sylius\Abstraction\StateMachine\Twig\StateMachineExtension instead.

  3. The class Sylius\Bundle\CoreBundle\Console\Command\ShowAvailablePluginsCommand has been deprecated and will be removed in Sylius 2.0.

  4. The class Sylius\Bundle\CoreBundle\Console\Command\Model\PluginInfo has been deprecated and will be removed in Sylius 2.0.

  5. The class Sylius\Bundle\CoreBundle\Form\EventSubscriber\AddUserFormSubscriber has been deprecated and will be removed in Sylius 2.0.

  6. The class Sylius\Bundle\ApiBundle\Filter\Doctrine\PromotionCouponPromotionFilter has been deprecated and will be removed in Sylius 2.0.

  7. Extending \InvalidArgumentException by Sylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHandException and Sylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHoldException is deprecated, instead they will extend \RuntimeException in Sylius 2.0.

  8. Statistics related deprecations:

    • The class Sylius\Bundle\AdminBundle\Provider\StatisticsDataProvider and interface Sylius\Bundle\AdminBundle\Provider\StatisticsDataProviderInterface have been deprecated and will be removed in Sylius 2.0. Use Sylius\Component\Core\Statistics\Provider\StatisticsProvider and Sylius\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 interface Sylius\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 interface Sylius\Component\Core\Dashboard\SalesDataProviderInterface have been deprecated and will be removed in Sylius 2.0.
    • The class Sylius\Component\Core\Dashboard\SalesSummary and interface Sylius\Component\Core\Dashboard\SalesSummaryInterface have been deprecated and will be removed in Sylius 2.0.
  9. 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,
        )
  10. 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
  11. 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,
        )