Completed
Push — master ( 73f6f7...e19e32 )
by Korotkov
01:42
created

HttpController::before()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Http;
4
5
use App\Http\Supports\HttpErrors;
6
use App\Http\Supports\TwigFunctions;
7
use Rudra\ContainerInterface;
8
use Rudra\Controller;
9
10
/**
11
 * Class Module
12
 *
13
 * @package Http
14
 */
15
class HttpController extends Controller
16
{
17
18
    use TwigFunctions;
19
    use HttpErrors;
20
21
    /**
22
     * @param ContainerInterface $container
23
     * @param string             $templateEngine
24
     */
25
    public function init(ContainerInterface $container, string $templateEngine)
26
    {
27
        parent::init($container, $templateEngine);
28
29
        $this->setData('TDcoRe || *Transition metal', 'title');
30
        $this->setData($this->container(), 'container');
31
        $this->check();
32
    }
33
}
34