File tree Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Original file line number Diff line number Diff line change
1
+ Version 5.0
2
+ ===========
3
+ * Support up to Symfony 5.1
4
+
1
5
Version 4.2
2
6
===========
3
7
* Fix Deprecation of Request-Injection in Service Definition (thanks @benr77 )
Original file line number Diff line number Diff line change 3
3
namespace DZunke \FeatureFlagsBundle \EventListener ;
4
4
5
5
use DZunke \FeatureFlagsBundle \Context ;
6
- use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
6
+ use Symfony \Component \HttpKernel \Event \RequestEvent ;
7
7
8
8
class ContextCreator
9
9
{
@@ -21,9 +21,9 @@ public function __construct(Context $context)
21
21
}
22
22
23
23
/**
24
- * @param GetResponseEvent $event
24
+ * @param RequestEvent $event
25
25
*/
26
- public function onKernelRequest (GetResponseEvent $ event )
26
+ public function onKernelRequest (RequestEvent $ event )
27
27
{
28
28
$ this ->context ->set ('client_ip ' , $ event ->getRequest ()->getClientIp ());
29
29
$ this ->context ->set ('hostname ' , $ event ->getRequest ()->getHost ());
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ The Bundle will allow you to implement Feature Flags to your Application.
6
6
Please Note that there is no Interface available, so the Flags must be
7
7
configured directly in Symfony-Configs.
8
8
9
- ** Use Versions >= 2.0 if Symfony 3.0 Support is wanted!**
9
+ ** Use Versions ^2.0 if Symfony 3.0 Support is wanted!**
10
+ ** Use Versions ^4.0 if Symfony 4.2 Support is wanted!**
11
+ ** Use Versions ^5.0 if Symfony 4.3 or 5.x Support is wanted!**
10
12
11
13
## Documentation
12
14
@@ -15,12 +17,12 @@ configured directly in Symfony-Configs.
15
17
You can add the Bundle by running [ Composer] ( http://getcomposer.org ) on your shell or adding it directly to your composer.json
16
18
17
19
``` bash
18
- php composer.phar require dzunke/feature-flags-bundle:dev-master
20
+ php composer.phar require dzunke/feature-flags-bundle:" ^5.0 "
19
21
```
20
22
21
23
``` json
22
24
"require" : {
23
- "dzunke/feature-flags-bundle" : " dev-master "
25
+ "dzunke/feature-flags-bundle" : " ^5.0 "
24
26
}
25
27
```
26
28
The Namespace will be registered by autoloading with Composer but to use the integrated features for symfony you have to register the Bundle.
Original file line number Diff line number Diff line change 13
13
],
14
14
"require" : {
15
15
"php" : " >=7.2" ,
16
- "symfony/http-foundation" : " ~4.0 |~5.0" ,
17
- "symfony/http-kernel" : " ~4.0 |~5.0" ,
18
- "symfony/dependency-injection" : " ~4.0 |~5.0" ,
19
- "symfony/config" : " ~4.0 |~5.0" ,
20
- "symfony/console" : " ~4.0 |~5.0" ,
21
- "symfony/twig-bridge" : " ~4.0 |~5.0" ,
22
- "symfony/yaml" : " ~4.0 |~5.0"
16
+ "symfony/http-foundation" : " ~4.3 |~5.0" ,
17
+ "symfony/http-kernel" : " ~4.3 |~5.0" ,
18
+ "symfony/dependency-injection" : " ~4.3 |~5.0" ,
19
+ "symfony/config" : " ~4.3 |~5.0" ,
20
+ "symfony/console" : " ~4.3 |~5.0" ,
21
+ "symfony/twig-bridge" : " ~4.3 |~5.0" ,
22
+ "symfony/yaml" : " ~4.3 |~5.0"
23
23
},
24
24
"require-dev" : {
25
25
"twig/twig" : " ~2.0|~3.0" ,
You can’t perform that action at this time.
0 commit comments