Skip to content

Commit 771f81d

Browse files
committed
When firing the callback for Fractal we'll also pass in the Fractal instance so users can interact with it at a more complex level.
Signed-off-by: Jason Lewis <[email protected]>
1 parent 6d78d44 commit 771f81d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transformer/Adapter/Fractal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function transform($response, $transformer, Binding $binding, Request $re
9696
$resource->setMetaValue($key, $value);
9797
}
9898

99-
$binding->fireCallback($resource);
99+
$binding->fireCallback($resource, $this->fractal);
100100

101101
return $this->fractal->createData($resource)->toArray();
102102
}

0 commit comments

Comments
 (0)