PHP code example of abenmada / sylius-backoffice-plugin
1. Go to this page and download the library: Download abenmada/sylius-backoffice-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/ */
abenmada / sylius-backoffice-plugin example snippets
return [
//..
Abenmada\BackofficePlugin\BackofficePlugin::class => ['all' => true],
]
declare(strict_types=1);
namespace App\Entity\Channel;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Abenmada\BackofficePlugin\Model\Channel\ChannelTrait as AbenmadaBackofficeChannelTrait;
use Sylius\Component\Core\Model\Channel as BaseChannel;
use Sylius\Component\Core\Model\ImagesAwareInterface;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_channel")
*/
class Channel extends BaseChannel implements ImagesAwareInterface
{
use AbenmadaBackofficeChannelTrait;
public function __construct()
{
$this->images = new ArrayCollection();
parent::__construct();
}
}