/**
* Boot the service provider.
*
* @return void
*/
public function boot()
{
$this->setupConfig();
Http\Response::setFormatters($this->prepareConfigValues($this->app['config']['api.formats']));
Http\Response::setTransformer($this->app['api.transformer']);
Http\Response::setEventDispatcher($this->app['events']);
$this->app->rebinding('api.routes', function ($app, $routes) {
$app['api.url']->setRouteCollections($routes);
});
}