aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarwolaethblack <a.unal677@gmail.com>2017-11-22 12:37:48 +0100
committermarwolaethblack <a.unal677@gmail.com>2017-11-22 12:37:48 +0100
commit4312b353dbb4b448d551975b63db9c95b3eef4f5 (patch)
tree90c991bc462526725593f82e56b288cfce2c7e03 /src/AppBundle/Controller/DefaultController.php
initial commit
Diffstat (limited to 'src/AppBundle/Controller/DefaultController.php')
-rw-r--r--src/AppBundle/Controller/DefaultController.php21
1 files changed, 21 insertions, 0 deletions
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,
+ ]);
+ }
+}