Completed
Push — master ( 77319b...ee05cf )
by Théo
7s
created

DefaultExtensionProvider::getExtensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of the LaravelYaml package.
5
 *
6
 * (c) Théo FIDRY <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Fidry\LaravelYaml\Provider;
13
14
use Fidry\LaravelYaml\DependencyInjection\Builder\ContainerBuilder;
15
use Fidry\LaravelYaml\DependencyInjection\Extension\DefaultExtension;
16
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
17
18
/**
19
 * @author Théo FIDRY <[email protected]>
20
 */
21
final class DefaultExtensionProvider extends IlluminateServiceProvider implements ProviderInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    final public function register()
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
27
    {
28
        $container = new ContainerBuilder();
29
30
        $extension = new DefaultExtension();
31
        $extension->load($container);
32
33
        $container->build($this->app);
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getExtensions()
40
    {
41
        return [DefaultExtension::class];
42
    }
43
}
44