PHP code example of webgriffe / sylius-elasticsearch-plugin
1. Go to this page and download the library: Download webgriffe/sylius-elasticsearch-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/ */
webgriffe / sylius-elasticsearch-plugin example snippets
use Webgriffe\SyliusElasticsearchPlugin\Doctrine\ORM\FilterableTrait;use Webgriffe\SyliusElasticsearchPlugin\Model\FilterableInterface;
class ProductAttribute implements FilterableInterface
{
use FilterableTrait;
}
yaml
imports:
- { resource: "@WebgriffeSyliusElasticsearchPlugin/config/config.php" }
yaml
webgriffe_sylius_elasticsearch_plugin:
resource: "@WebgriffeSyliusElasticsearchPlugin/config/shop_routing.php"