symposium / web-app-bundle
Symfony WebAppBundle
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-master
2015-09-10 08:59 UTC
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: *
- friendsofsymfony/rest-bundle: 1.7.*
- jms/serializer-bundle: ~1.0
- symfony/framework-bundle: >=2.3
- twig/twig: *
Requires (Dev)
This package is auto-updated.
Last update: 2019-02-27 17:40:33 UTC
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