Skip to content

Commit d58e713

Browse files
authored
Merge pull request #13 from lcorbasson/master
Fix typos in the README
2 parents b875252 + 7af6e62 commit d58e713

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ To make sure that a relationship is defined before you try to access credentials
117117

118118
```php
119119
if ($config->hasRelationship('database')) {
120-
$creds = $conifg->credentials('database');
120+
$creds = $config->credentials('database');
121121
// ...
122122
}
123123
```
@@ -173,10 +173,10 @@ This method looks for the "foo" variable. If found, it is returned. If not, th
173173
[Routes](https://docs.platform.sh/configuration/routes.html) on Platform.sh define how a project will handle incoming requests; that primarily means what application container will serve the request, but it also includes cache configuration, TLS settings, etc. Routes may also have an optional ID, which is the preferred way to access them.
174174

175175
```php
176-
$config->route("main");
176+
$config->getRoute("main");
177177
```
178178

179-
The `route()` method takes a single string for the route ID ("main" in this case) and returns the corresponding route array. If the route is not found it will throw an exception.
179+
The `getRoute()` method takes a single string for the route ID ("main" in this case) and returns the corresponding route array. If the route is not found it will throw an exception.
180180

181181
To access all routes, or to search for a route that has no ID, the `routes()` method returns an associative array of routes keyed by their URL. That mirrors the structure of the `PLATFORM_ROUTES` environment variable.
182182

0 commit comments

Comments
 (0)