phlexible / focal-point-bundle
phlexible focal point bundle
1.1.3
2017-03-21 15:22 UTC
README
PhlexibleFocalPointBundle 在 phlexible 中增加了基于国家的支持。
安装
- 使用 composer 下载 PhlexibleFocalPointBundle
- 启用 Bundle
- 导入 PhlexibleFocalPointBundle 路由
- 清除 symfony 缓存
步骤 1:使用 composer 下载 PhlexibleFocalPointBundle
运行命令添加 PhlexibleFocalPointBundle
$ php composer.phar require phlexible/focal-point-bundle "~1.0.0"
Composer 将将 Bundle 安装到项目的 vendor/phlexible
目录。
步骤 2:启用 Bundle
在 kernel 中启用 Bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\FocalPointBundle\PhlexibleFocalPointBundle(), ); }
步骤 3:导入 PhlexibleFocalPointBundle 路由
导入 PhlexibleFocalPointBundle 路由。
# app/config/admin_routing.yml phlexible_focalpoint: resource: "@PhlexibleFocalPointBundle/Controller/" type: annotation
步骤 4:清除 symfony 缓存
如果你使用环境 prod 访问 phlexible 应用程序,请清除缓存
$ php app/console cache:clear --env=prod