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
Copy file name to clipboardexpand all lines: README.md
+8-7
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## Requirement
10
10
11
-
* PHP 5.6 above
11
+
* PHP 7.1 above
12
12
* Modern PHP
13
13
14
14
### About Phystrix
@@ -21,14 +21,15 @@ In case of a service failing way too often, to not make the situation worse, Phy
21
21
22
22
### Differences from [older version(upwork/phystrix)](https://github.com/upwork/phystrix)
23
23
24
-
* Use PHP 5.6 and PHP 7 above
24
+
* Use PHP 7.1 above
25
25
* Change from 'Zend DI' to 'PSR DI', DI is optional. (for using Your framework)
26
26
* Add [phystrix dashboard](https://github.com/upwork/phystrix-dashboard) library, and fix more.
27
27
* Add Libraries of APCU
28
-
* PSR-2: Coding Style is default.
28
+
* PSR-12: Coding Style is default.
29
29
* PSR-3: Logger Interface(coming soon)
30
30
* PSR-16: Common Interface for Caching Libraries
31
31
32
+
32
33
### Understanding Phystrix
33
34
34
35
Not only Phystrix was heavily inspired by the amazing [Hystrix library](https://github.com/Netflix/Hystrix) for Java by Netflix, it also attempts to follow the best practices set by the library. You will notice that configuration parameters are the same as well as much of how it works internally.
@@ -41,7 +42,7 @@ Recommended way to install Phystrix is by using [Composer](https://getcomposer.o
41
42
42
43
```json
43
44
"require": {
44
-
"yupmin/modern-phystrix": "~3.0"
45
+
"yupmin/modern-phystrix": "~4.0"
45
46
},
46
47
47
48
```
@@ -96,7 +97,7 @@ Notice, the extra parameters you pass to the factory’s getCommand method are f
96
97
The factory is instantiated as follows:
97
98
98
99
```php
99
-
use Zend\Config\Config;
100
+
use Laminas\Config\Config;
100
101
use Odesk\Phystrix\ApcStateStorage;
101
102
use Odesk\Phystrix\CircuitBreakerFactory;
102
103
use Odesk\Phystrix\CommandMetricsFactory;
@@ -120,7 +121,7 @@ $phystrix = new CommandFactory(
120
121
);
121
122
```
122
123
123
-
The way you store the configuration files is up to you. Phystrix relies on [Zend\Config](https://github.com/zendframework/Component_ZendConfig) to manage configurations. In this case, __phystrix-config.php__ is a PHP array:
124
+
The way you store the configuration files is up to you. Phystrix relies on [Laminas\Config](https://github.com/zendframework/Component_ZendConfig) to manage configurations. In this case, __phystrix-config.php__ is a PHP array:
124
125
125
126
```php
126
127
return array(
@@ -188,7 +189,7 @@ Phystrix only works with the command keys. If you have two different commands wi
188
189
Sometimes, you may need to change a parameter when a command is used in a particular context:
0 commit comments