| Total Complexity | 4 | 
| Total Lines | 59 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | class Http2PusherServiceProvider extends ServiceProvider  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * Path to the default configuration file.  | 
            ||
| 15 | *  | 
            ||
| 16 | * @var string  | 
            ||
| 17 | */  | 
            ||
| 18 | private $config = __DIR__ . '/../config/http2-pusher.php';  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * Bootstrap any application services.  | 
            ||
| 22 | *  | 
            ||
| 23 | * @return void  | 
            ||
| 24 | */  | 
            ||
| 25 | public function boot()  | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Register bindings in the container.  | 
            ||
| 34 | *  | 
            ||
| 35 | * @return void  | 
            ||
| 36 | */  | 
            ||
| 37 | public function register()  | 
            ||
| 44 | }  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * Register the builder for HTTP2 pushes.  | 
            ||
| 48 | *  | 
            ||
| 49 | * @return void  | 
            ||
| 50 | */  | 
            ||
| 51 | private function registerBuilder()  | 
            ||
| 52 |     { | 
            ||
| 53 |         $this->app->singleton(Builder::class, function ($app) { | 
            ||
| 54 | return new Builder(  | 
            ||
| 55 | $app['request'],  | 
            ||
| 56 | $app['config']['http2-pusher']  | 
            ||
| 57 | );  | 
            ||
| 58 | });  | 
            ||
| 59 | }  | 
            ||
| 60 | |||
| 61 | /**  | 
            ||
| 62 | * Override the response factory provided by Laravel.  | 
            ||
| 63 | *  | 
            ||
| 64 | * @return void  | 
            ||
| 65 | */  | 
            ||
| 66 | private function registerResponse()  | 
            ||
| 70 | });  | 
            ||
| 71 | }  | 
            ||
| 73 |