### Update controllers.json Configuration Source: https://github.com/sylius/cmsplugin/blob/1.2/UPGRADE-1.1.md Add this configuration to your controllers.json file to enable the new PreviewController and set its fetch mode to lazy. This is required for the updated asset handling. ```json { "@sylius-cms-plugin/admin": { "preview": { "enabled": true, "fetch": "lazy" } } } ``` -------------------------------- ### ProductsCarouselByTaxonContentElementRenderer Constructor Change Source: https://github.com/sylius/cmsplugin/blob/1.2/UPGRADE-1.2.md The constructor for ProductsCarouselByTaxonContentElementRenderer has been updated to accept ProductsProviderInterface or ProductRepositoryInterface, and a nullable TaxonRepositoryInterface. The old signatures are supported but deprecated and will be removed in 2.0. ```php public function __construct( private ProductRepositoryInterface $productRepository, private TaxonRepositoryInterface $taxonRepository, ) ``` ```php public function __construct( private ProductsProviderInterface|ProductRepositoryInterface $productsProvider, private ?TaxonRepositoryInterface $taxonRepository = null, ) ``` -------------------------------- ### Add New Dependency to package.json Source: https://github.com/sylius/cmsplugin/blob/1.2/UPGRADE-1.1.md Run this command in your end application to add the new dependency to your package.json file. This ensures the correct version of the admin assets is included. ```bash yarn add @sylius-cms-plugin/admin@file:vendor/sylius/cms-plugin/assets/admin ``` -------------------------------- ### ProductsCarouselContentElementRenderer Constructor Change Source: https://github.com/sylius/cmsplugin/blob/1.2/UPGRADE-1.2.md The constructor for ProductsCarouselContentElementRenderer has been updated to accept ProductsProviderInterface or ProductRepositoryInterface. For backward compatibility, the old signature is supported but deprecated and will be removed in 2.0. ```php public function __construct( private ProductRepositoryInterface $productRepository, ) ``` ```php public function __construct( private ProductsProviderInterface|ProductRepositoryInterface $productsProvider, ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.