Skip to content

Commit

Permalink
Set a default exclusion configuration to Embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
kayue committed Apr 13, 2015
1 parent d4a36e7 commit 127630c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hateoas/Configuration/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Relation
public function __construct($name, $href = null, $embedded = null, array $attributes = array(), Exclusion $exclusion = null)
{
if (null !== $embedded && !$embedded instanceof Embedded) {
$embedded = new Embedded($embedded);
$embedded = new Embedded($embedded, null, $exclusion);
}

if (null === !$href && null === $embedded) {
Expand Down

0 comments on commit 127630c

Please sign in to comment.