Skip to content

Commit

Permalink
Add type property when registering resources
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed Jun 7, 2016
1 parent 0402dd2 commit eef668f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V3/HubV3Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function register(Resource $resource, $agb = null)

private function buildRegisterXml(Resource $resource, $agb = null)
{
$resourceNode = new SimpleXMLElement('<resource />');
$resourceNode = new SimpleXMLElement('<resource type="' . $resource->getType() . '" />');
foreach ($resource->getProperties() as $property) {
$resourceNode->addChild('property', $property->getValue())->addAttribute('name', $property->getName());
}
Expand Down

0 comments on commit eef668f

Please sign in to comment.