4.8 KiB
UPGRADE FROM 1.13 TO 2.0
Codebase
-
Doctrine MongoDB and PHPCR is not longer supported in ResourceBundle and GridBundle:
-
The following classes were removed:
Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\DataSourceSylius\Bundle\GridBundle\Doctrine\PHPCRODM\DriverSylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExpressionBuilderSylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExpressionBuilderInterfaceSylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExpressionVisitorSylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExtraComparisonSylius\Bundle\ResourceBundle\DependencyInjection\Driver\Doctrine\DoctrineODMDriverSylius\Bundle\ResourceBundle\DependencyInjection\Driver\Doctrine\DoctrinePHPCRDriverSylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB\DocumentRepositorySylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB\TranslatableRepositorySylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\DefaultParentListenerSylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\NameFilterListenerSylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\NameResolverListenerSylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Builder\DefaultFormBuilderSylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\DocumentRepositorySylius\Bundle\ResourceBundle\EventListener\ODMMappedSuperClassSubscriberSylius\Bundle\ResourceBundle\EventListener\ODMRepositoryClassSubscriberSylius\Bundle\ResourceBundle\EventListener\ODMTranslatableListener
-
The following services were removed:
sylius.event_subscriber.odm_mapped_super_classsylius.event_subscriber.odm_repository_classsylius.grid_driver.doctrine.phpcrodm
-
The following parameters were removed:
sylius.mongodb_odm.repository.classsylius.phpcr_odm.repository.class
-
The following configuration options were removed:
sylius.mailer.templates
-
-
Added the
Sylius\Component\Order\Context\ResettableCartContextInterfacethat extendsSylius\Component\Order\Context\CartContextInterfaceandSymfony\Contracts\Service\ResetInterface. -
The name of the default
LiipImagineBundle's resolver and loader were changed from default to sylius_image (reference). To change the default resolver and/or loader forLiipImagineBundle, configurecacheand/ordata_loaderparameters under theliip_imaginekey. -
The
sylius/calendarpackage has been replaced withsymfony/clockpackage. All usages of theSylius\Calendar\Provider\DateTimeProviderInterfaceclass have been replaced withSymfony\Component\Clock\ClockInterfaceclass.-
The following classes were changed:
Sylius\Bundle\CoreBundle\CatalogPromotion\Announcer\CatalogPromotionAnnouncerSylius\Bundle\CoreBundle\MessageHandler\Admin\Account\RequestResetPasswordEmailHandlerSylius\Bundle\CoreBundle\PriceHistory\Logger\PriceChangeLoggerSylius\Bundle\CoreBundle\PriceHistory\Remover\ChannelPricingLogEntriesRemoverSylius\Bundle\ShippingBundle\Assigner\ShippingDateAssignerSylius\Bundle\PromotionBundle\Criteria\DateRangeSylius\Bundle\ApiBundle\Applicator\ArchivingShippingMethodApplicatorSylius\Bundle\ApiBundle\CommandHandler\Account\RequestResetPasswordTokenHandlerSylius\Bundle\ApiBundle\CommandHandler\Account\VerifyCustomerAccountHandlerSylius\Component\Taxation\Checker\TaxRateDateEligibilityChecker
-
-
The parameter order of
Sylius\Bundle\CoreBundle\Form\Type\Checkout\AddressType::__constructhas been changed:
public function __construct(
+ private readonly AddressComparatorInterface $addressComparator,
string $dataClass,
array $validationGroups = []
- private readonly AddressComparatorInterface $addressComparator = null,
)
-
The
\Serializableinterface has been removed from theSylius\Component\User\Model\UserInterface. -
The parameter order of the
Sylius\Component\Core\OrderProcessing\OrderPaymentProcessor::__constructhas been changed:
public function __construct(
private OrderPaymentProviderInterface $orderPaymentProvider,
- private string $targetState = PaymentInterface::STATE_CART,
private OrderPaymentsRemoverInterface $orderPaymentsRemover,
private array $unprocessableOrderStates,
+ private string $targetState = PaymentInterface::STATE_CART,
)
Frontend
use_webpackoption was removed from thesylius_uiconfiguration, and the Webpack has become the only module bundler provided by Sylius.use_webpacktwig global variable was removed. Webpack is always used now, and there is no need to check for it.