]> 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 9ada371b1c0a8f57e80072df6950a8564b8579bb..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,11 @@ 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'),
+            ]
         );
     }
 
@@ -35,8 +42,7 @@ class StaticController extends Controller
     public function quickstartAction()
     {
         return $this->render(
-            'WallabagCoreBundle:Static:quickstart.html.twig',
-            array()
+            '@WallabagCore/themes/common/Static/quickstart.html.twig'
         );
     }
 }