]> 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 64875a6654c3723de9facd382a7f4552b8eee90d..318af303c361bda37acf27e06176560dadc64ced 100644 (file)
@@ -12,9 +12,13 @@ class StaticController extends Controller
      */
     public function howtoAction()
     {
+        $addonsUrl = $this->container->getParameter('addons_url');
+
         return $this->render(
-            'WallabagCoreBundle:Static:howto.html.twig',
-            array()
+            '@WallabagCore/themes/common/Static/howto.html.twig',
+            [
+                'addonsUrl' => $addonsUrl,
+            ]
         );
     }
 
@@ -24,8 +28,21 @@ class StaticController extends Controller
     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'
         );
     }
 }