| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class WebController extends Controller |
||
| 13 | { |
||
| 14 | use HttpErrors; |
||
| 15 | use TwigFunctions; |
||
| 16 | |||
| 17 | public function init() |
||
| 18 | { |
||
| 19 | $this->template(config('template', 'web')); |
||
| 20 | $this->updateSessionIfSetRememberMe(); |
||
| 21 | $this->setData('title', 'Rudra Framework'); |
||
| 22 | // $this->setData('user', PDO::user()); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $template |
||
| 27 | * @param array $params |
||
| 28 | * @throws \Twig_Error_Loader |
||
| 29 | * @throws \Twig_Error_Runtime |
||
| 30 | * @throws \Twig_Error_Syntax |
||
| 31 | */ |
||
| 32 | public function twig(string $template, array $params = []): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 |