| Conditions | 2 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function register(): void |
||
| 34 | { |
||
| 35 | parent::register(); |
||
| 36 | |||
| 37 | $this->app->bind(ResourceRegistrar::class, RestfulResourceRegistrar::class); |
||
| 38 | |||
| 39 | $this->app->bind(Transformer::class, DefaultTransformer::class); |
||
| 40 | |||
| 41 | $this->mergeConfigFrom(__DIR__ . '/../config/restful.php', 'restful'); |
||
| 42 | |||
| 43 | try { |
||
| 44 | $debugBar = app('debugbar'); |
||
| 45 | $debugBar->addCollector(new MessagesCollector('restful_calls')); |
||
| 46 | } catch (BindingResolutionException $ex) { |
||
|
|
|||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 |