Skip to content

Commit

Permalink
Merge pull request #89 from IlCallo/bugfix-transformer-factory-singleton
Browse files Browse the repository at this point in the history
Transformations now uses a new FractalTransformFactory for every request instead of sharing a singleton
  • Loading branch information
flugg authored Dec 4, 2017
2 parents b3936c4 + 1e9e3bd commit 6daea9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResponderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected function registerPaginationBindings()
*/
protected function registerTransformationBindings()
{
$this->app->singleton(TransformFactoryContract::class, function ($app) {
$this->app->bind(TransformFactoryContract::class, function ($app) {
return $app->make(FractalTransformFactory::class);
});

Expand Down

0 comments on commit 6daea9e

Please sign in to comment.