X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FCoreBundle%2FController%2FStaticController.php;h=2a57f06fb055bc416ad037ed7a8580b91e4eea3c;hb=cdd3010b478c9ca818dd6d22d03c81ef4a5ab208;hp=07931f582ae491d77cd89becd0dbe4184c96d74c;hpb=e4788de51ecbf2773a043325965e10eb74b14e8f;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index 07931f58..2a57f06f 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -7,6 +7,19 @@ 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 +27,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', + [] + ); } }