定制 zenside/core-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zenside/core-bundle

Composer 安装命令:

composer require zenside/core-bundle

包简介

Bundle with pre-configured full-stack modules (sonata,fos,rest)

README 文档

README

A pre-configured Symfony2 bundle to start project with usefull bundles pre-configured.

  • Sonata admin
  • FOS Rest
  • FOS User

Installation with composer

require "zenside/core-bundle": "dev-master"

Carefull, the minimum stability version is "dev", so be aware to define it in the composer.json of your project :

"minimum-stability": "dev",

Symfony 2 configuration

In AppKernel.php, add the following bundles :

// symfony
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),

// doctrine
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),

// user
new FOS\UserBundle\FOSUserBundle(),
new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'),

// admin
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),
new Stnw\DatePickerBundle\StnwDatePickerBundle(),

// rest
new JMS\SerializerBundle\JMSSerializerBundle($this),
new FOS\RestBundle\FOSRestBundle(),

// js routing
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),

new ZenSide\CoreBundle\ZenSideCoreBundle(),

In your config.yml, reference config of CoreBundle

imports:
    - { resource: @ZenSideCoreBundle/Resources/config/config.yml }

In your routing.yml, reference routing of CoreBundle

core_routing:
    resource: "@ZenSideCoreBundle/Resources/config/routing.yml"

Fresh new Symfony2 project

To start a new project using CoreBundle pre-configuration, check the ZenSide/SymfonyStarter project

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-05-01