aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/StaticController.php
blob: 2a57f06fb055bc416ad037ed7a8580b91e4eea3c (plain) (tree)
1
2
3
4
5
6
7
8
9
10

     
                                         






                                                           

                                     

                                 
                                                                  
 

                                                        
                                       


          
       




                                     
                                                        
             

                                                                                
             

          







                                                             
              

          
 
<?php

namespace Wallabag\CoreBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class StaticController extends Controller
{
    /**
     * @Route("/howto", name="howto")
     */
    public function howtoAction()
    {
        $addonsUrl = $this->container->getParameter('addons_url');

        return $this->render(
            'WallabagCoreBundle:Static:howto.html.twig',
            ['addonsUrl' => $addonsUrl]
        );
    }

    /**
     * @Route("/about", name="about")
     */
    public function aboutAction()
    {
        return $this->render(
            'WallabagCoreBundle: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(
            'WallabagCoreBundle:Static:quickstart.html.twig',
            []
        );
    }
}