glavweb / content-bundle
该包最新版本(v0.3.3)没有提供许可信息。
Symfony GlavwebContentBundle.
v0.3.3
2018-04-20 12:47 UTC
Requires
- php: ^7.1.3
- doctrine/doctrine-bundle: ^1.5
- doctrine/orm: ^2.3
- egeloen/ckeditor-bundle: ^6.0
- glavweb/cms-core-bundle: ^0.2
- sonata-project/admin-bundle: ^3.1
- sonata-project/block-bundle: ^3.2
- symfony/form: ^2.7|^3.0|^4.0
- symfony/framework-bundle: ^2.7|^3.0|^4.0
README
使用composer获取该包
通过在Symfony项目的根目录下运行以下命令添加GlavwebContentBundle
php composer.phar require glavweb/content-bundle
启用包
要开始使用该包,请在您的应用程序的kernel类中注册该包
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Glavweb\ContentBundle\GlavwebContentBundle(), // ... ); }
配置包
此包被设计成开箱即用。您需要做的只是启用动态路由,在您的路由配置文件中添加以下内容。
# app/config/routing.yml glavweb_content_block: resource: "@GlavwebContentBundle/Resources/config/routing.yml"