manhattan/console-bundle

方便地将控制台系统集成到 Symfony2 的 Manhattan 控制台中

安装: 921

依赖者: 2

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

v1.0.0 2013-10-03 11:19 UTC

This package is auto-updated.

Last update: 2024-08-26 22:12:11 UTC


README

Build Status

什么是

Console Bundle 是一个用于管理网站的基本后端系统。它是 CMS 的基本容器,允许为其他包的包含进行单独配置。它包括重用样式、布局、菜单构建和用户管理的能力,为用户提供一种管理数据和用户的方式。

文档

所有文档位于 文档 中。

安装

  1. 将此包添加到 composer 文件

     {
         "require": {
             ...
             "manhattan/console-bundle": "dev-master"
         }
     }
    
  2. 将此包添加到您的应用程序内核

     // 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(),
             // ...
         );
     }
    
  3. 将路由添加到 config.yml 路由

     _console_bundle:
     resource: "@ManhattanConsoleBundle/Resources/config/routing.yml"
    
  4. app/config.ymlimports: 行之前放置该包的安全文件。这将允许应用程序覆盖包的安全文件。

     - { resource: '@ManhattanConsoleBundle/Resources/config/security.yml' }
     - { resource: security.yml }