定制 symposium/event-bundle 二次开发

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

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

symposium/event-bundle

Composer 安装命令:

composer require symposium/event-bundle

包简介

Symfony EventBundle

README 文档

README

An Event Bundle for Symfony2

Requirements

Composer

Installation

To install this bundle please follow the next steps: First add the dependencies to your composer.json file:

"require":{
    ...
    "symposium/event-bundle": "dev-master",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "stof/doctrine-extensions-bundle": "~1.1@dev",
    "friendsofsymfony/rest-bundle":"1.7.*",
    "jms/serializer-bundle":"~1.0"
    ...
}

Enable the bundle in your application kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Symposium\Bundle\EventBundle\SymposiumEventBundle(),
        new FOS\UserBundle\FOSUserBundle(),
        new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
    );
}

Import the routing of the bundle:

# app/config/routing.yml

fos_user:
    resource: "@FOSUserBundle/Resources/config/routing/all.xml"

sp_event:
    resource: "@SymposiumEventBundle/Resources/config/routing.yml"
    type:     rest

Then import the bundle configuration:

# app/config/config.yml

imports:
    - { resource: @SymposiumEventBundle/Resources/config/config.yml }
    - { resource: @SymposiumEventBundle/Resources/config/security.yml }
    - { resource: @SymposiumEventBundle/Resources/config/services.yml }

Then add the security configuration:

# app/config/security.yml

security:
    providers:
        in_memory:
            memory: ~
        fos_userbundle:
            id: fos_user.user_provider.username

Finally install the bundle with the command:

composer update

You can access to the route /Entity/ (where Entity is one of the entity in Entity folder).

统计信息

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

GitHub 信息

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

其他信息

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