2015-01-23 11:45:24 +00:00
|
|
|
<?php
|
|
|
|
|
2015-01-23 15:28:37 +00:00
|
|
|
namespace Wallabag\CoreBundle\Controller;
|
2015-01-23 11:45:24 +00:00
|
|
|
|
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
|
|
|
|
|
|
class StaticController extends Controller
|
|
|
|
{
|
2015-08-07 19:22:43 +00:00
|
|
|
/**
|
|
|
|
* @Route("/howto", name="howto")
|
|
|
|
*/
|
2015-08-20 05:53:55 +00:00
|
|
|
public function howtoAction()
|
|
|
|
{
|
2016-06-06 18:59:20 +00:00
|
|
|
$addonsUrl = $this->container->getParameter('addons_url');
|
2015-08-20 05:53:55 +00:00
|
|
|
return $this->render(
|
|
|
|
'WallabagCoreBundle:Static:howto.html.twig',
|
2016-06-06 18:59:20 +00:00
|
|
|
['addonsUrl' => $addonsUrl]
|
2015-08-20 05:53:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-01-23 11:45:24 +00:00
|
|
|
/**
|
|
|
|
* @Route("/about", name="about")
|
|
|
|
*/
|
|
|
|
public function aboutAction()
|
|
|
|
{
|
|
|
|
return $this->render(
|
2015-01-23 15:28:37 +00:00
|
|
|
'WallabagCoreBundle:Static:about.html.twig',
|
2016-04-12 09:36:01 +00:00
|
|
|
[
|
2016-01-21 07:53:09 +00:00
|
|
|
'version' => $this->getParameter('wallabag_core.version'),
|
|
|
|
'paypal_url' => $this->getParameter('wallabag_core.paypal_url'),
|
2016-04-12 09:36:01 +00:00
|
|
|
]
|
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(
|
|
|
|
'WallabagCoreBundle:Static:quickstart.html.twig',
|
2016-04-12 09:36:01 +00:00
|
|
|
[]
|
2016-01-09 13:34:49 +00:00
|
|
|
);
|
|
|
|
}
|
2015-01-23 11:45:24 +00:00
|
|
|
}
|