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

HttpApiController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 1
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