Passed
Push — master ( 4eed2e...471128 )
by Alexander
03:23
created

DebugServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
1
<?php
2
3
/**
4
 * Lenevor Framework
5
 *
6
 * LICENSE
7
 *
8
 * This source file is subject to the new BSD license that is bundled
9
 * with this package in the file license.md.
10
 * It is also available through the world-wide-web at this URL:
11
 * https://lenevor.com/license
12
 * If you did not receive a copy of the license and are unable to
13
 * obtain it through the world-wide-web, please send an email
14
 * to [email protected] so we can send you a copy immediately.
15
 *
16
 * @package     Lenevor
17
 * @subpackage  Base
18
 * @link        https://lenevor.com
19
 * @copyright   Copyright (c) 2019 - 2023 Alexander Campo <[email protected]>
20
 * @license     https://opensource.org/licenses/BSD-3-Clause New BSD license or see https://lenevor.com/license or see /license.md
21
 */
22
23
namespace Syscodes\Components\Debug;
24
25
use Syscodes\Components\Support\ServiceProvider;
26
use Syscodes\Components\Contracts\Core\ExceptionRender;
27
use Syscodes\Components\Core\Exceptions\Debugging\DebugExceptionRender;
28
29
/**
30
 * For loading the debug class from the container of services.
31
 */
32
class DebugServiceProvider extends ServiceProvider
33
{
34
    /**
35
     * Register the service provider.
36
     * 
37
     * @return void
38
     */
39
    public function register()
40
    {
41
        $this->app->bind(ExceptionRender::class, fn ($app) => $app->make(DebugExceptionRender::class));
42
    }
43
}