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

HttpController::templateEngine()   B

Complexity

Conditions 2
Paths 2

Size

Total Lines 41
Code Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 41
rs 8.8571
c 0
b 0
f 0
cc 2
eloc 20
nc 2
nop 1
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