]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/StaticController.php
Add a real configuration for CS-Fixer
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / StaticController.php
index 0fd19d6529859f6e480b9b8d56af2bfbc1b95c41..318af303c361bda37acf27e06176560dadc64ced 100644 (file)
@@ -7,14 +7,42 @@ 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(
+            '@WallabagCore/themes/common/Static/howto.html.twig',
+            [
+                'addonsUrl' => $addonsUrl,
+            ]
+        );
+    }
+
     /**
      * @Route("/about", name="about")
      */
     public function aboutAction()
     {
         return $this->render(
-            'WallabagCoreBundle:Static:about.html.twig',
-            array()
+            '@WallabagCore/themes/common/Static/about.html.twig',
+            [
+                'version' => $this->getParameter('wallabag_core.version'),
+                'paypal_url' => $this->getParameter('wallabag_core.paypal_url'),
+            ]
+        );
+    }
+
+    /**
+     * @Route("/quickstart", name="quickstart")
+     */
+    public function quickstartAction()
+    {
+        return $this->render(
+            '@WallabagCore/themes/common/Static/quickstart.html.twig'
         );
     }
 }