phlexible / indexer-storage-elastica-bundle
phlexible indexer storage elastica bundle
1.1.3
2017-04-19 11:45 UTC
Requires
- php: >=5.6.0
- phlexible/elastica-bundle: ~1.2
- phlexible/indexer-bundle: ~1.1
Requires (Dev)
- phpunit/phpunit: ~5.6
README
PhlexibleIndexerStorageElasticaBundle 为 phlexible 添加了支持 elasticsearch 索引的功能。
安装
- 使用 composer 下载 PhlexibleIndexerStorageElasticaBundle
- 启用 Bundle
- 清除 symfony 缓存
步骤 1: 使用 composer 下载 PhlexibleIndexerStorageElasticaBundle
运行以下命令添加 PhlexibleIndexerBundle
$ php composer.phar require phlexible/indexer-storage-elastica-bundle "~1.0.0"
Composer 将将 Bundle 安装到项目的 vendor/phlexible
目录。
步骤 2: 启用 Bundle
在 kernel 中启用 Bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\IndexerStorageElasticaBundle\PhlexibleIndexerStorageElasticaBundle(), ); }
步骤 3: 清除 symfony 缓存
如果您以 prod 环境访问 phlexible 应用程序,请清除缓存
$ php app/console cache:clear --env=prod