Skip to content

Commit 6557848

Browse files
committed
fix serializer
1 parent a8830d8 commit 6557848

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/rest/Serializer.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ class Serializer extends BaseSerializer
1414
/** @var string|array the configuration for creating the decorator. */
1515
public $decorator = 'frostealth\presenter\interfaces\DecoratorInterface';
1616

17+
/**
18+
* @inheritDoc
19+
*/
20+
protected function serializeModel($model)
21+
{
22+
$model = $this->decorate($model);
23+
24+
return parent::serializeModel($model);
25+
}
26+
1727
/**
1828
* @inheritDoc
1929
*/

0 commit comments

Comments
 (0)