diff --git a/src/Generator/WebHook.php b/src/Generator/WebHook.php index 2308a2a..f23230f 100644 --- a/src/Generator/WebHook.php +++ b/src/Generator/WebHook.php @@ -42,6 +42,14 @@ public static function generate(string $namespace, string $event, SchemaRegistry ), new Node\Expr\Variable('requestSchemaValidator'), ) + )->addStmt( + new Node\Expr\Assign( + new Node\Expr\PropertyFetch( + new Node\Expr\Variable('this'), + 'hydrator' + ), + new Node\Expr\Variable('hydrator'), + ) ); $class->addStmt($constructor);