X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=src%2FWallabag%2FCoreBundle%2FController%2FStaticController.php;h=318af303c361bda37acf27e06176560dadc64ced;hb=86ecd2b543e0f63609213ff45665fef94e38c681;hp=07931f582ae491d77cd89becd0dbe4184c96d74c;hpb=6e334aba689f891a229c8a57f908f10dad5b3759;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index 07931f58..318af303 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -7,22 +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("/", name="homepage") + * @Route("/quickstart", name="quickstart") */ - public function apiAction() + public function quickstartAction() { - return $this->redirect($this->generateUrl('nelmio_api_doc_index')); + return $this->render( + '@WallabagCore/themes/common/Static/quickstart.html.twig' + ); } }