symposium/web-app-bundle
Composer 安装命令:
composer require symposium/web-app-bundle
包简介
Symfony WebAppBundle
README 文档
README
A Symfony2 Bundle to generate Web Apps
Installation
To install this bundle please follow the next steps:
First add dependencies in your composer.json file:
"require":{
...
"symposium/web-app-bundle": "dev-master",
"friendsofsymfony/rest-bundle":"1.7.*",
"jms/serializer-bundle":"~1.0",
"nelmio/api-doc-bundle": "^2.9",
"guzzlehttp/guzzle": "~6.0",
"eightpoints/guzzle-bundle": "dev-master"
...
}
Install these new dependencies in your application using composer:
composer update
Register needed bundles in your application kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Symposium\Bundle\WebAppBundle\SymposiumWebAppBundle(),
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
new EightPoints\Bundle\GuzzleBundle\GuzzleBundle(),
);
}
Import the bundle configuration :
# app/config/config.yml
imports:
- { resource: @SymposiumWebAppBundle/Resources/config/config.yml }
Import the routing configuration for the bundle:
# app/config/routing.yml
# Routing configuration for the WebAppBundle
sp_web_app:
type: rest
resource: "@SymposiumWebAppBundle/Resources/config/routing.yml"
# Routing configuration for the doc of the api
NelmioApiDocBundle:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
prefix: /api/doc
Documentation
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2015-07-09