File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11
11
12
12
use Prezent \Doctrine \Translatable \EventListener \TranslatableListener ;
13
13
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
14
- use Symfony \Component \HttpKernel \Event \GetResponseEvent ;
14
+ use Symfony \Component \HttpKernel \Event \RequestEvent ;
15
15
use Symfony \Component \HttpKernel \KernelEvents ;
16
16
17
17
/**
@@ -39,10 +39,10 @@ public function __construct(TranslatableListener $translatableListener)
39
39
/**
40
40
* Set request locale
41
41
*
42
- * @param GetResponseEvent $event
42
+ * @param RequestEvent $event
43
43
* @return void
44
44
*/
45
- public function onKernelRequest (GetResponseEvent $ event )
45
+ public function onKernelRequest (RequestEvent $ event )
46
46
{
47
47
$ this ->translatableListener ->setCurrentLocale ($ event ->getRequest ()->getLocale ());
48
48
}
Original file line number Diff line number Diff line change 24
24
"require" : {
25
25
"doctrine/doctrine-bundle" : " ^1.2|^2.0" ,
26
26
"prezent/doctrine-translatable" : " ^1.0|^2.0" ,
27
- "symfony/config" : " ^2.7|^3.0|^4.0" ,
28
- "symfony/dependency-injection" : " ^2.7|^3.0|^4.0" ,
29
- "symfony/event-dispatcher" : " ^2.7|^3.0|^4.0" ,
30
- "symfony/http-foundation" : " ^2.7|^3.0|^4.0" ,
31
- "symfony/http-kernel" : " ^2.7|^3.0|^4.0"
27
+ "symfony/config" : " ^2.7|^3.0|^4.0|^5.0 " ,
28
+ "symfony/dependency-injection" : " ^2.7|^3.0|^4.0|^5.0 " ,
29
+ "symfony/event-dispatcher" : " ^2.7|^3.0|^4.0|^5.0 " ,
30
+ "symfony/http-foundation" : " ^2.7|^3.0|^4.0|^5.0 " ,
31
+ "symfony/http-kernel" : " ^2.7|^3.0|^4.0|^5.0 "
32
32
},
33
33
"require-dev" : {
34
34
"symfony/phpunit-bridge" : " ^4.1"
You can’t perform that action at this time.
0 commit comments