PHP code example of asdoria / sylius-marketing-cart-plugin

1. Go to this page and download the library: Download asdoria/sylius-marketing-cart-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/ */

    

asdoria / sylius-marketing-cart-plugin example snippets


Asdoria\SyliusMarketingCartPlugin\AsdoriaSyliusMarketingCartPlugin::class => ['all' => true],

  

  declare(strict_types=1);

  namespace App\Repository;

  use Asdoria\SyliusMarketingCartPlugin\Repository\Model\Aware\ProductMarketingCartRepositoryAwareInterface;
  use Asdoria\SyliusMarketingCartPlugin\Repository\Traits\ProductMarketingCartRepositoryTrait;
  use Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductRepository as BaseProductRepository;
  
  final class ProductRepository extends BaseProductRepository implements ProductMarketingCartRepositoryAwareInterface
  {
      use ProductMarketingCartRepositoryTrait;
  }