You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`onDedicated` method that determines if the current environment is a Platform.sh Dedicated environment. Replaces deprecated `onEnterprise` method.
9
+
10
+
### Changed
11
+
12
+
* Deprecates `onEnterprise` method - which is for now made to wrap around the added `onDedicated` method. `onEnterprise`**will be removed** in a future release, so update your projects to use `onDedicated` instead as soon as possible.
13
+
14
+
## [2.3.0] - 2019-09-19
15
+
16
+
### Added
17
+
18
+
*`getPrimaryRoute` method for accessing routes marked "primary" in `routes.yaml`.
19
+
*`getUpstreamRoutes` method returns an object map that includes only those routes that point to a valid upstream.
20
+
21
+
## [2.2.2] - 2019-04-29
22
+
23
+
### Changed
24
+
25
+
* Updates `routes` method to use `routesDef` instead of `variablesDef` while checking if routes are defined in a Platform.sh environment.
26
+
* Updates `getRoute` method documentation in `README`.
27
+
28
+
### Removed
29
+
30
+
* Guard on the `variables` method.
31
+
32
+
## [2.2.1] - 2019-04-25
33
+
34
+
### Changed
35
+
36
+
* Improved the error handling for missing property variables.
37
+
38
+
## [2.2.0] - 2019-04-24
39
+
40
+
### Changed
41
+
42
+
* Route URL addition moved to constructor.
43
+
* Switch to more permissive checking of variable availability.
44
+
45
+
## [2.1.0] - 2019-03-22
46
+
47
+
### Added
48
+
49
+
* Adds `hasRelationship` method, which determines if a relationship is defined, and thus has credentials available.
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,17 @@ $config->inBuild();
64
64
65
65
$config->inRuntime();
66
66
67
-
$config->onEnterprise();
67
+
$config->onDedicated();
68
68
69
69
$config->onProduction();
70
70
```
71
71
72
+
> **Note:**
73
+
>
74
+
> Platform.sh will no longer refer to its [99.99% uptime SLA product](https://platform.sh/solutions/) as "Enterprise", but rather as "Dedicated". Configuration Reader libraries have in turn been updated to include an `onDedicated` method to replace `onEnterprise`. For now `onEnterprise` remains available. It now calls the new method and no breaking changes have been introduced.
75
+
>
76
+
> It is recommended that you update your projects to use `onDedicated` as soon as possible, as `onEnterprise` will be removed in a future version of this library.
77
+
72
78
### Read environment variables
73
79
74
80
The following magic properties return the corresponding environment variable value. See the [Platform.sh documentation](https://docs.platform.sh/development/variables.html) for a description of each.
@@ -129,7 +135,7 @@ In some cases the library being used to connect to a service wants its credentia
129
135
Credential Formatters can be registered on the configuration object, and a few are included out of the box. That allows 3rd party libraries to ship their own formatters that can be easily integrated into the `Config` object to allow easier use.
130
136
131
137
```php
132
-
function formatMyService(array $credentials) string
138
+
function formatMyService(array $credentials) string
0 commit comments