]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/StaticController.php
Handling socials links into a config file
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / StaticController.php
index 07931f582ae491d77cd89becd0dbe4184c96d74c..f5fcabd8fe4e6cc93f6ddca1ae63f8ed3137be00 100644 (file)
@@ -7,6 +7,18 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 
 class StaticController extends Controller
 {
+    /**
+     * @Route("/howto", name="howto")
+     */
+    public function howtoAction()
+    {
+        $addonsUrl = $this->container->getParameter('addons_url');
+        return $this->render(
+            'WallabagCoreBundle:Static:howto.html.twig',
+            ['addonsUrl' => $addonsUrl]
+        );
+    }
+
     /**
      * @Route("/about", name="about")
      */
@@ -14,15 +26,21 @@ class StaticController extends Controller
     {
         return $this->render(
             'WallabagCoreBundle:Static:about.html.twig',
-            array()
+            [
+                'version' => $this->getParameter('wallabag_core.version'),
+                'paypal_url' => $this->getParameter('wallabag_core.paypal_url'),
+            ]
         );
     }
 
     /**
-     * @Route("/", name="homepage")
+     * @Route("/quickstart", name="quickstart")
      */
-    public function apiAction()
+    public function quickstartAction()
     {
-        return $this->redirect($this->generateUrl('nelmio_api_doc_index'));
+        return $this->render(
+            'WallabagCoreBundle:Static:quickstart.html.twig',
+            []
+        );
     }
 }