This repository was archived by the owner on Jan 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ Build Status] ( https://api.travis-ci.org/raml-org/raml-php-parser.svg?branch=master )] ( https://www.travis-ci.org/raml-org/raml-php-parser )
2
2
[ ![ Coverage Status] ( https://coveralls.io/repos/github/raml-org/raml-php-parser/badge.svg?branch=master )] ( https://coveralls.io/github/raml-org/raml-php-parser?branch=master )
3
- [ ![ Latest Stable Version] ( https://poser.pugx.org/raml-org/raml-php-parser/version )] ( https://packagist.org/packages/raml-org/raml-php-parser )
3
+ [ ![ Latest Stable Version] ( https://poser.pugx.org/raml-org/raml-php-parser/v/stable )] ( https://packagist.org/packages/raml-org/raml-php-parser )
4
+ [ ![ Latest Unstable Version] ( https://poser.pugx.org/raml-org/raml-php-parser/v/unstable )] ( https://packagist.org/packages/raml-org/raml-php-parser )
4
5
[ ![ Total Downloads] ( https://poser.pugx.org/raml-org/raml-php-parser/downloads )] ( https://packagist.org/packages/raml-org/raml-php-parser )
5
6
6
7
See the [ RAML specification] ( https://github.com/raml-org/raml-spec ) .
@@ -60,7 +61,7 @@ returned using:
60
61
61
62
62
63
``` php
63
- $parser = new Raml\Parser();
64
+ $parser = new \ Raml\Parser();
64
65
$api = $parser->parse('tests/fixture/simple.raml');
65
66
66
67
$routes = $api->getResourcesAsUri();
@@ -75,7 +76,7 @@ To return:
75
76
DELETE /songs/{songId} => ...
76
77
]
77
78
78
- $routes = $api->getResourcesAsUri(new Raml\RouteFormatter\NoRouteFormatter());
79
+ $routes = $api->getResourcesAsUri(new \ Raml\RouteFormatter\NoRouteFormatter());
79
80
```
80
81
81
82
#### Route Formatters
You can’t perform that action at this time.
0 commit comments