ViewServiceProvider::registerBladeCompiler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace Netflie\Componentes\Provider;
4
5
use Netflie\Componentes\Compiler;
6
7
class ViewServiceProvider extends \Illuminate\View\ViewServiceProvider
8
{
9
    /**
10
     * Register the Blade compiler implementation.
11
     *
12
     * @return void
13
     */
14
    public function registerBladeCompiler()
15
    {
16
        $this->app->singleton('blade.compiler', function ($app) {
17
            return new Compiler($app['files'], $app['config']['view.compiled']);
18
        });
19
    }
20
}