PHP code example of sylius / product-bundle-plugin
1. Go to this page and download the library: Download sylius/product-bundle-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 / product-bundle-plugin example snippets
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Sylius\SyliusRector\Set\SyliusProductBundle;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->importNames();
$rectorConfig->removeUnusedImports();
$rectorConfig->import(__DIR__ . '/vendor/sylius/sylius-rector/config/config.php');
$rectorConfig->paths([
__DIR__ . '/src'
]);
$rectorConfig->sets([
SyliusProductBundle::PRODUCT_BUNDLE,
]);
};