Completed
Push — master ( f92166...9df481 )
by Korotkov
08:19
created

HttpApiController::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
3
namespace App\Http;
4
5
use App\Http\Supports\HttpErrors;
6
use Rudra\Controller;
7
use Rudra\ContainerInterface;
8
9
class HttpApiController extends Controller
10
{
11
    use HttpErrors;
12
13
    public function init(ContainerInterface $container, string $templateEngine)
14
    {
15
        parent::init($container, $templateEngine);
16
17
        $this->getTwig()->addGlobal('container', $this->container());
18
        $this->setData('Коротков Данила || Веб-разработчик (Web-developer)', 'title');
19
        $this->check('API');
20
    }
21
}
22