PHP code example of sylius / legacy-shop-bridge-plugin
1. Go to this page and download the library: Download sylius/legacy-shop-bridge-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 / legacy-shop-bridge-plugin example snippets
// src/Controller/OrderController.php
namespace App\Controller;
use Sylius\LegacyShopBridgePlugin\Controller\Trait\OrderTrait;
class OrderController extends \Sylius\Bundle\CoreBundle\Controller\OrderController
{
use OrderTrait; // Adds: widgetAction(), clearAction()
// ... your existing custom methods
}
// src/Controller/OrderItemController.php
namespace App\Controller;
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
use Sylius\LegacyShopBridgePlugin\Controller\Trait\OrderItemTrait;
class OrderItemController extends ResourceController
{
use OrderItemTrait; // Adds: addAction(), removeAction() and helper methods
// ... your existing custom methods
}
// src/Controller/ProvinceController.php
namespace App\Controller;
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
use Sylius\LegacyShopBridgePlugin\Controller\Trait\ProvinceTrait;
class ProvinceController extends ResourceController
{
use ProvinceTrait; // Adds: choiceOrTextFieldFormAction() and helper methods
// ... your existing custom methods
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.