-
Support for Sylius 1.14 has been added, it is now the recommended Sylius version to use.
-
Support for Sylius 1.12 has been dropped, upgrade your application to Sylius 1.13. or to Sylius 1.14.
-
Support for Sylius 1.13 has been added, it is now the recommended Sylius version to use with the plugin.
-
Support for Sylius 1.11 has been dropped, upgrade your application to Sylius 1.12. or to Sylius 1.13.
-
Support for PHP 8.0 has been dropped.
-
Support for Sylius 1.10 has been dropped, upgrade your application to Sylius 1.11 or to Sylius 1.12 as this is the recommended Sylius version to use with AdminOrderCreationPlugin.
-
Support for Symfony 4.4 has been dropped.
-
Support for Symfony 6 has been added.
-
Support for Sylius 1.9 has been dropped, upgrade your application to Sylius 1.10 or to Sylius 1.11 as this is the recommended Sylius version to use with AdminOrderCreationPlugin.
-
Support for Symfony 5 has been bumped up to 5.4.
-
Support for PHP 7.4 has been dropped.
- Upgrade your application to Sylius 1.9.
-
Upgrade your application to Sylius 1.8.
-
Remove previously copied migration files (you may check migrations to remove here).
- Create
CustomerRepository
/ProductVariantRepository
repositories or adjust existing ones to useCustomerRepositoryTrait
/ProductVariantRepositoryTrait
and implementCustomerRepositoryInterface
/ProductVariantRepositoryInterface
:
<?php
# src/Doctrine/ORM/CustomerRepository.php
declare(strict_types=1);
namespace App\Doctrine\ORM;
use Sylius\AdminOrderCreationPlugin\Doctrine\ORM\CustomerRepositoryInterface;
use Sylius\AdminOrderCreationPlugin\Doctrine\ORM\CustomerRepositoryTrait;
use Sylius\Bundle\CoreBundle\Doctrine\ORM\CustomerRepository as BaseCustomerRepository;
final class CustomerRepository extends BaseCustomerRepository implements CustomerRepositoryInterface
{
use CustomerRepositoryTrait;
}
<?php
# src/Doctrine/ORM/ProductVariantRepository.php
declare(strict_types=1);
namespace App\Doctrine\ORM;
use Sylius\AdminOrderCreationPlugin\Doctrine\ORM\ProductVariantRepositoryInterface;
use Sylius\AdminOrderCreationPlugin\Doctrine\ORM\ProductVariantRepositoryTrait;
use Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductVariantRepository as BaseProductVariantRepository;
final class ProductVariantRepository extends BaseProductVariantRepository implements ProductVariantRepositoryInterface
{
use ProductVariantRepositoryTrait;
}
- Add config if not present yet:
# config/packages/_sylius.yaml
sylius_customer:
resources:
customer:
classes:
repository: App\Doctrine\ORM\CustomerRepository
sylius_product:
resources:
product_variant:
classes:
repository: App\Doctrine\ORM\ProductVariantRepository
Check (ref. PR #146) if you need more context.