File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 12
12
namespace Translation \Bundle \EditInPlace ;
13
13
14
14
use Symfony \Component \HttpFoundation \Request ;
15
- use Symfony \Component \HttpFoundation \Session \Session ;
15
+ use Symfony \Component \HttpFoundation \RequestStack ;
16
+ use Symfony \Component \HttpFoundation \Session \SessionInterface ;
16
17
17
18
/**
18
19
* Default Activator implementation.
@@ -24,13 +25,13 @@ final class Activator implements ActivatorInterface
24
25
const KEY = 'translation_bundle.edit_in_place.enabled ' ;
25
26
26
27
/**
27
- * @var Session
28
+ * @var SessionInterface
28
29
*/
29
30
private $ session ;
30
31
31
- public function __construct (Session $ session )
32
+ public function __construct (RequestStack $ requestStack )
32
33
{
33
- $ this ->session = $ session ;
34
+ $ this ->session = $ requestStack -> getSession () ;
34
35
}
35
36
36
37
/**
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ services:
19
19
- ~
20
20
21
21
Translation\Bundle\EditInPlace\Activator :
22
- arguments : ['@session ']
22
+ arguments : ['@request_stack ']
23
23
public : true
24
24
25
25
Translation\Bundle\Translator\EditInPlaceTranslator :
You can’t perform that action at this time.
0 commit comments