Skip to content

Commit

Permalink
add support for yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kunicmarko20 committed Dec 15, 2017
1 parent 51e5bc1 commit 711748e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Routing/Loader/RestRouteLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function supports($resource, $type = null)
{
return is_string($resource)
&& 'rest' === $type
&& !in_array(pathinfo($resource, PATHINFO_EXTENSION), ['xml', 'yml']
&& !in_array(pathinfo($resource, PATHINFO_EXTENSION), ['xml', 'yml', 'yaml']
);
}

Expand Down

0 comments on commit 711748e

Please sign in to comment.