Completed
Push — master ( 39c1d7...699dc6 )
by Changwan
06:44
created

PhpViewServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Wandu\View;
3
4
use Wandu\DI\ContainerInterface;
5
use Wandu\DI\ServiceProviderInterface;
6
use Wandu\View\Contracts\RenderInterface;
7
use function Wandu\Foundation\config;
8
9
/**
10
 * @deprecated use PhiewServiceProvider
11
 */
12
class PhpViewServiceProvider implements ServiceProviderInterface
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function register(ContainerInterface $app)
18
    {
19 2
        $app->closure(RenderInterface::class, function () {
20 1
            return new PhpView(config('view.path'));
21 2
        });
22 2
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 2
    public function boot(ContainerInterface $app)
28
    {
29 2
    }
30
}
31