phlexible / indexer-page-bundle
phlexible 索引页面包
1.2.4
2017-10-05 09:28 UTC
Requires
- php: >=5.6.0
- phlexible/element-bundle: ^1.3
- phlexible/element-renderer-bundle: ^1.3
- phlexible/indexer-bundle: ^1.1.5
- phlexible/queue-bundle: ^1.3
- phlexible/siteroot-bundle: ^1.3
- phlexible/tree-bundle: ^1.3
- psr/log: ^1.0
- symfony/dom-crawler: ^2.8
Requires (Dev)
- phpunit/phpunit: ^5.7
- symfony/config: ^2.8
- symfony/css-selector: ^2.8
- symfony/dependency-injection: ^2.8
- symfony/http-foundation: ^2.8
- symfony/routing: ^2.8
- symfony/templating: ^2.8
Suggests
- phlexible/frontend-search-bundle: Default frontend search for elements
Replaces
- phlexible/indexer-element-bundle: *
README
此包提供了节点HTML输出的自动索引。需要PhlexibleIndexerBundle基础设施。
安装
- 使用composer下载PhlexibleIndexerPageBundle
- 启用包
- 清除symfony缓存
步骤 1: 使用composer下载PhlexibleIndexerPageBundle
通过运行以下命令添加PhlexibleIndexerPageBundle
$ php composer.phar require phlexible/indexer-page-bundle "~1.0.0"
Composer会将包安装到项目的vendor/phlexible
目录中。
步骤 2: 启用包
在kernel中启用包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\IndexerPageBundle\PhlexibleIndexerPageBundle(), ); }
步骤 3: 清除symfony缓存
如果您使用环境prod访问phlexible应用程序,请清除缓存
$ php app/console cache:clear --env=prod