Skip to content

Commit

Permalink
added AppBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
hidabe committed Apr 14, 2017
1 parent 10eb605 commit e5bae70
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function registerBundles()
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new \AppBundle\AppBundle()
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
Expand Down
1 change: 1 addition & 0 deletions app/Resources/views/appDemo.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hola mundo
9 changes: 9 additions & 0 deletions src/AppBundle/AppBundle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace AppBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class AppBundle extends Bundle
{
}
17 changes: 17 additions & 0 deletions src/AppBundle/Controller/DefaultController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;

class DefaultController extends Controller
{
/**
* @Route("/appDemo", name="appDemo")
*/
public function indexAction()
{
return $this->render('appDemo.html.twig');
}
}

0 comments on commit e5bae70

Please sign in to comment.