forked from wallabag/wallabag
Move source files directly under src/ directory
This commit is contained in:
47
src/Controller/StaticController.php
Normal file
47
src/Controller/StaticController.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Wallabag\CoreBundle\Controller;
|
||||
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class StaticController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Route("/howto", name="howto")
|
||||
*/
|
||||
public function howtoAction()
|
||||
{
|
||||
$addonsUrl = $this->getParameter('addons_url');
|
||||
|
||||
return $this->render(
|
||||
'Static/howto.html.twig',
|
||||
[
|
||||
'addonsUrl' => $addonsUrl,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/about", name="about")
|
||||
*/
|
||||
public function aboutAction()
|
||||
{
|
||||
return $this->render(
|
||||
'Static/about.html.twig',
|
||||
[
|
||||
'version' => $this->getParameter('wallabag_core.version'),
|
||||
'paypal_url' => $this->getParameter('wallabag_core.paypal_url'),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/quickstart", name="quickstart")
|
||||
*/
|
||||
public function quickstartAction()
|
||||
{
|
||||
return $this->render(
|
||||
'Static/quickstart.html.twig'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user