wallabag/src/Controller/StaticController.php

48 lines
1,002 B
PHP
Raw Normal View History

2015-01-23 11:45:24 +00:00
<?php
2024-02-19 00:30:12 +00:00
namespace Wallabag\Controller;
2015-01-23 11:45:24 +00:00
use Symfony\Component\Routing\Annotation\Route;
2015-01-23 11:45:24 +00:00
class StaticController extends AbstractController
2015-01-23 11:45:24 +00:00
{
2015-08-07 19:22:43 +00:00
/**
* @Route("/howto", name="howto")
*/
public function howtoAction()
{
$addonsUrl = $this->getParameter('addons_url');
2016-07-20 21:08:04 +00:00
return $this->render(
2024-02-18 23:03:14 +00:00
'Static/howto.html.twig',
2017-07-01 07:52:38 +00:00
[
'addonsUrl' => $addonsUrl,
]
);
}
2015-01-23 11:45:24 +00:00
/**
* @Route("/about", name="about")
*/
public function aboutAction()
{
return $this->render(
2024-02-18 23:03:14 +00:00
'Static/about.html.twig',
[
2024-02-19 23:47:53 +00:00
'version' => $this->getParameter('wallabag.version'),
'paypal_url' => $this->getParameter('wallabag.paypal_url'),
]
2015-01-23 11:45:24 +00:00
);
}
2016-01-09 13:34:49 +00:00
/**
* @Route("/quickstart", name="quickstart")
*/
public function quickstartAction()
{
return $this->render(
2024-02-18 23:03:14 +00:00
'Static/quickstart.html.twig'
2016-01-09 13:34:49 +00:00
);
}
2015-01-23 11:45:24 +00:00
}