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