Passed
Pull Request — master (#75)
by Korotkov
12:47
created

WebController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A containerInit() 0 6 1
1
<?php
2
3
namespace App\Containers\Web;
4
5
use App\Ship\ShipController;
6
use Rudra\View\ViewFacade as View;
7
use Rudra\Controller\ContainerControllerInterface;
8
9
class WebController extends ShipController implements ContainerControllerInterface
10
{
11
    public function containerInit(): void
12
    {
13
        View::setup(dirname(__DIR__) . '/', "Web/UI/tmpl", "Web/UI/cache");
14
15
        data([
16
            "title" => "Rudra Framework:: Web Container",
17
        ]);
18
    }
19
}
20