Skip to content

Commit

Permalink
Fix: Add extension hook, normaliseRecord(), to mapToDataObject()
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hermo committed Dec 16, 2018
1 parent 014ec12 commit 3b2cf7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SwiftypeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ public function mapToDataObject($record)
unset($record['body']);
}

$this->extend('normaliseRecord', $record);

return Injector::inst()->createWithArgs($className, [$record]);
}

Expand Down

0 comments on commit 3b2cf7c

Please sign in to comment.