manhattan / console-bundle
方便地将控制台系统集成到 Symfony2 的 Manhattan 控制台中
v1.0.0
2013-10-03 11:19 UTC
Requires
- php: >=5.3.2
- friendsofsymfony/user-bundle: dev-master
- stfalcon/tinymce-bundle: dev-master
- symfony/framework-bundle: 2.*
This package is auto-updated.
Last update: 2024-08-26 22:12:11 UTC
README
什么是
Console Bundle 是一个用于管理网站的基本后端系统。它是 CMS 的基本容器,允许为其他包的包含进行单独配置。它包括重用样式、布局、菜单构建和用户管理的能力,为用户提供一种管理数据和用户的方式。
文档
所有文档位于 文档 中。
安装
-
将此包添加到 composer 文件
{ "require": { ... "manhattan/console-bundle": "dev-master" } }
-
将此包添加到您的应用程序内核
// app/AppKernel.php public function registerBundles() { return array( // ... new Manhattan\Bundle\ConsoleBundle\ManhattanConsoleBundle(), new Ornj\Bundle\MarkdownBundle\OrnjMarkdownBundle(), new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), new FOS\UserBundle\FOSUserBundle(), // ... ); }
-
将路由添加到
config.yml
路由_console_bundle: resource: "@ManhattanConsoleBundle/Resources/config/routing.yml"
-
在
app/config.yml
的imports:
行之前放置该包的安全文件。这将允许应用程序覆盖包的安全文件。- { resource: '@ManhattanConsoleBundle/Resources/config/security.yml' } - { resource: security.yml }