PHP code example of sylius / admin-order-creation-plugin
1. Go to this page and download the library: Download sylius/admin-order-creation-plugin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sylius / admin-order-creation-plugin example snippets
declare(strict_types=1);
namespace App\Repository;
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;
}
declare(strict_types=1);
namespace App\Repository;
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;
}