| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function boot() |
||
| 25 | { |
||
| 26 | $manager = new Manager; |
||
| 27 | |||
| 28 | // If you have to customize the manager instance, like setting a custom serializer, |
||
| 29 | // I strongly suggest you to create your own service provider and add you manager configuration action here |
||
| 30 | // Here some example if you want to set a custom serializer : |
||
| 31 | // $manager->setSerializer(\League\Fractal\Serializer\JsonApiSerializer); |
||
| 32 | |||
| 33 | // Are we going to try and include embedded data? |
||
| 34 | $manager->parseIncludes(explode(',', $this->app['Illuminate\Http\Request']->get('include'))); |
||
| 35 | |||
| 36 | //Set the response instance properly |
||
| 37 | $this->app->instance('EllipseSynergie\ApiResponse\Contracts\Response', new Response($manager)); |
||
| 38 | } |
||
| 39 | |||
| 50 |