bootResponseMacros()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace BrightComponents\Common;
4
5
use Illuminate\Support\Facades\Response;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
class BrightComponentsServiceProvider extends BaseServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        $this->bootResponseMacros();
16
    }
17
18
    /**
19
     * Boot the Response macros.
20
     */
21
    public function bootResponseMacros()
22
    {
23
        Response::mixin(new \BrightComponents\Common\Macros\Response);
24
    }
25
}
26