]>
Commit | Line | Data |
---|---|---|
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 | ||
17 | return $this->render( | |
18 | '@WallabagCore/themes/common/Static/howto.html.twig', | |
19 | ['addonsUrl' => $addonsUrl] | |
20 | ); | |
21 | } | |
22 | ||
23 | /** | |
24 | * @Route("/about", name="about") | |
25 | */ | |
26 | public function aboutAction() | |
27 | { | |
28 | return $this->render( | |
29 | '@WallabagCore/themes/common/Static/about.html.twig', | |
30 | [ | |
31 | 'version' => $this->getParameter('wallabag_core.version'), | |
32 | 'paypal_url' => $this->getParameter('wallabag_core.paypal_url'), | |
33 | ] | |
34 | ); | |
35 | } | |
36 | ||
37 | /** | |
38 | * @Route("/quickstart", name="quickstart") | |
39 | */ | |
40 | public function quickstartAction() | |
41 | { | |
42 | return $this->render( | |
43 | '@WallabagCore/themes/common/Static/quickstart.html.twig', | |
44 | [] | |
45 | ); | |
46 | } | |
47 | } |