]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Controller/StaticController.php
Handling socials links into a config file
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / StaticController.php
1 <?php
2
3 namespace Wallabag\CoreBundle\Controller;
4
5 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
8 class StaticController extends Controller
9 {
10 /**
11 * @Route("/howto", name="howto")
12 */
13 public function howtoAction()
14 {
15 $addonsUrl = $this->container->getParameter('addons_url');
16 return $this->render(
17 'WallabagCoreBundle:Static:howto.html.twig',
18 ['addonsUrl' => $addonsUrl]
19 );
20 }
21
22 /**
23 * @Route("/about", name="about")
24 */
25 public function aboutAction()
26 {
27 return $this->render(
28 'WallabagCoreBundle:Static:about.html.twig',
29 [
30 'version' => $this->getParameter('wallabag_core.version'),
31 'paypal_url' => $this->getParameter('wallabag_core.paypal_url'),
32 ]
33 );
34 }
35
36 /**
37 * @Route("/quickstart", name="quickstart")
38 */
39 public function quickstartAction()
40 {
41 return $this->render(
42 'WallabagCoreBundle:Static:quickstart.html.twig',
43 []
44 );
45 }
46 }