diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/.htaccess | 7 | ||||
-rw-r--r-- | src/AppBundle/AppBundle.php | 9 | ||||
-rw-r--r-- | src/AppBundle/Controller/DefaultController.php | 21 |
3 files changed, 37 insertions, 0 deletions
diff --git a/src/.htaccess b/src/.htaccess new file mode 100644 index 0000000..fb1de45 --- /dev/null +++ b/src/.htaccess @@ -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> diff --git a/src/AppBundle/AppBundle.php b/src/AppBundle/AppBundle.php new file mode 100644 index 0000000..05123b6 --- /dev/null +++ b/src/AppBundle/AppBundle.php @@ -0,0 +1,9 @@ +<?php + +namespace AppBundle; + +use Symfony\Component\HttpKernel\Bundle\Bundle; + +class AppBundle extends Bundle +{ +} diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php new file mode 100644 index 0000000..cecd334 --- /dev/null +++ b/src/AppBundle/Controller/DefaultController.php @@ -0,0 +1,21 @@ +<?php + +namespace AppBundle\Controller; + +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; +use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Component\HttpFoundation\Request; + +class DefaultController extends Controller +{ + /** + * @Route("/", name="homepage") + */ + public function indexAction(Request $request) + { + // replace this example code with whatever you need + return $this->render('default/index.html.twig', [ + 'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR, + ]); + } +} |