PHP code example of nedac / sylius-temporarily-out-of-stock-plugin
1. Go to this page and download the library: Download nedac/sylius-temporarily-out-of-stock-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/ */
nedac / sylius-temporarily-out-of-stock-plugin example snippets
# src/Repository/ProductRepository.php
declare(strict_types=1);
namespace App\Repository;
use Nedac\SyliusTemporarilyOutOfStockPlugin\Repository\ProductRepositoryTrait;
use Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductRepository as BaseProductRepository;
final class ProductRepository extends BaseProductRepository {
use ProductRepositoryTrait;
}