PHP code example of frosh / shopware-rector
1. Go to this page and download the library: Download frosh/shopware-rector 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/ */
frosh / shopware-rector example snippets
use Frosh\Rector\Set\ShopwareSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
ShopwareSetList::SHOPWARE_6_5_0,
]);
};
bash
# Clone this repo
composer install
# Dry Run
./vendor/bin/rector process --config config/shopware-6.5.0.php --autoload-file [SHOPWARE]/vendor/autoload.php [SHOPWARE]/custom/plugins/MyPlugin --dry-run
# Normal Run
./vendor/bin/rector process --config config/shopware-6.5.0.php --autoload-file [SHOPWARE]/vendor/autoload.php [SHOPWARE]/custom/plugins/MyPlugin