| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | protected function registerFacade() |
||
| 30 | { |
||
| 31 | $this->app->singleton('json-response.option', function ($app) { |
||
| 32 | return new Option($app['config']->get('json-response')); |
||
| 33 | }); |
||
| 34 | $this->app->singleton('json-response.attribute', function ($app) { |
||
| 35 | return new Attribute($app['json-response.option']->instance()); |
||
| 36 | }); |
||
| 37 | $this->app->singleton('json-response.status', function ($app) { |
||
| 38 | return new Status($app['config']->get('json-response.status')); |
||
| 39 | }); |
||
| 40 | $this->app->singleton('json-response.builder', function ($app) { |
||
| 41 | return new JsonResponse($app['json-response.option']->instance(), $app['json-response.attribute']->instance(), $app['json-response.status']->instance()); |
||
| 42 | }); |
||
| 61 |