| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function register() |
||
| 16 | { |
||
| 17 | 90 | $this->app->bind('fractal', function () { |
|
| 18 | |||
| 19 | 7 | $manager = new Manager(); |
|
| 20 | |||
| 21 | 7 | $fractal = new Fractal($manager); |
|
| 22 | 7 | $fractal->serializeWith(new DataSerializer); |
|
| 23 | 7 | $fractal->parseIncludes(request('include', [])); |
|
| 24 | |||
| 25 | 7 | return $fractal; |
|
| 26 | 90 | }); |
|
| 27 | 90 | } |
|
| 28 | } |
||
| 29 |