Installation of symfony3

This commit is contained in:
Simon Vieille 2016-04-01 23:10:35 +02:00
commit 6176ce9735
38 changed files with 1849 additions and 48 deletions

7
src/.htaccess Normal file
View file

@ -0,0 +1,7 @@
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>

View file

@ -0,0 +1,16 @@
<?php
namespace Deblan\Bundle\ApiBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
class DefaultController extends Controller
{
/**
* @Route("/")
*/
public function indexAction()
{
}
}

View file

@ -0,0 +1,9 @@
<?php
namespace Deblan\Bundle\ApiBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DeblanApiBundle extends Bundle
{
}

View file

@ -0,0 +1,4 @@
services:
# deblan_api.example:
# class: Deblan\Bundle\ApiBundle\Example
# arguments: ["@service_id", "plain_value", %parameter%]

View file

@ -0,0 +1 @@
Hello World!

View file

@ -0,0 +1,17 @@
<?php
namespace Deblan\Bundle\ApiBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/');
$this->assertContains('Hello World', $client->getResponse()->getContent());
}
}