Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 2.11 KB

File metadata and controls

52 lines (42 loc) · 2.11 KB

UPGRADE FROM 1.1 TO 1.2

Constructors signature changes

  1. The following constructor signatures have been changed:

    Sylius\CmsPlugin\Renderer\ContentElement\ProductsCarouselContentElementRenderer

        public function __construct(
    -       private ProductRepositoryInterface $productRepository,
    +       private ProductsProviderInterface|ProductRepositoryInterface $productsProvider,
        )

    Sylius\CmsPlugin\Renderer\ContentElement\ProductsCarouselByTaxonContentElementRenderer

        public function __construct(
    -       private ProductRepositoryInterface $productRepository,
    -       private TaxonRepositoryInterface $taxonRepository,
    +       private ProductsProviderInterface|ProductRepositoryInterface $productsProvider,
    +       private ?TaxonRepositoryInterface $taxonRepository = null,
        )

    Sylius\CmsPlugin\Renderer\ContentElement\ProductsGridContentElementRenderer

        public function __construct(
    -       private ProductRepositoryInterface $productRepository,
    +       private ProductsProviderInterface|ProductRepositoryInterface $productsProvider,
        )

    Sylius\CmsPlugin\Renderer\ContentElement\ProductsGridByTaxonContentElementRenderer

        public function __construct(
    -       private ProductRepositoryInterface $productRepository,
    -       private TaxonRepositoryInterface $taxonRepository,
    +       private ProductsProviderInterface|ProductRepositoryInterface $productsProvider,
    +       private ?TaxonRepositoryInterface $taxonRepository = null,
        )

    For backward compatibility, the old constructor signatures are still supported but deprecated. Passing repository interfaces will trigger a deprecation notice and will be removed in version 2.0.

New WYSIWYG editor: Quill

A new Quill WYSIWYG editor is available alongside the existing Trix editor. The default remains trix, so no action is required to keep the previous behavior.

See the documentation for setup and configuration details: https://docs.sylius.com/cms-plugin/development/wysiwyg-editors