Passed
Push — master ( 12ed59...661264 )
by Julien
05:22
created

ServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 1
f 0
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zemit\Provider\Assets;
12
13
use Zemit\Assets\Manager;
14
use Zemit\Provider\AbstractServiceProvider;
15
16
/**
17
 * Class ServiceProvider
18
 *
19
 * @author Julien Turbide <[email protected]>
20
 * @copyright Zemit Team <[email protected]>
21
 *
22
 * @since 1.0
23
 * @version 1.0
24
 *
25
 * @package Zemit\Provider\Assets
26
 */
27
class ServiceProvider extends AbstractServiceProvider
28
{
29
    /**
30
     * The Service name.
31
     * @var string
32
     */
33
    protected $serviceName = 'assets';
34
    
35
    /**
36
     * {@inheritdoc}
37
     *
38
     * @return void
39
     */
40 7
    public function register(\Phalcon\Di\DiInterface $di): void
41
    {
42 7
        $di->setShared($this->getName(), Manager::class);
43
    }
44
}
45