src/Controller/PageController.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Service\AppService;
  4. class PageController extends BaseController
  5. {
  6.     private $_appService;
  7.     public function __construct(AppService $appService)
  8.     {
  9.         $this->_appService $appService;
  10.     }
  11.     public function termsAndConditions()
  12.     {
  13.         if ($this->_appService->isMobileApp())
  14.             $view 'Page/termsAndConditionsMobile.html.twig';
  15.         else
  16.             $view 'Page/termsAndConditions.html.twig';
  17.         return $this->render($view);
  18.     }
  19.     public function privacyPolicy()
  20.     {
  21.         if ($this->_appService->isMobileApp())
  22.             $view 'Page/privacyPolicyMobile.html.twig';
  23.         else
  24.             $view 'Page/privacyPolicy.html.twig';
  25.         return $this->render($view);
  26.     }
  27.     public function presale()
  28.     {
  29.         if ($this->_appService->isMobileApp())
  30.             $view 'Page/presaleMobile.html.twig';
  31.         else
  32.             throw $this->createNotFoundException();
  33.         return $this->render($view);
  34.     }
  35. }