File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 2222 "require-dev" : {
2323 "nette/schema" : " ^1.2" ,
2424 "php-parallel-lint/php-parallel-lint" : " ^1.3" ,
25- "php-parallel-lint/php-console-highlighter" : " ^0.5 .0" ,
26- "phpstan/phpstan" : " ^1.2 " ,
25+ "php-parallel-lint/php-console-highlighter" : " ^1 .0" ,
26+ "phpstan/phpstan" : " ^1.9 " ,
2727 "phpstan/phpstan-nette" : " ^1.0" ,
28- "spaze/coding-standard" : " ^0.0 " ,
29- "spaze/encryption" : " ^0.4 .0"
28+ "spaze/coding-standard" : " ^1.3 " ,
29+ "spaze/encryption" : " ^1 .0"
3030 },
3131 "scripts" : {
3232 "lint" : " vendor/bin/parallel-lint --colors src/" ,
4343 },
4444 "suggest" : {
4545 "spaze/encryption" : " Adds a support for encrypted session storage"
46+ },
47+ "config" : {
48+ "allow-plugins" : {
49+ "dealerdirect/phpcodesniffer-composer-installer" : true
50+ }
4651 }
4752}
Original file line number Diff line number Diff line change 55
66use Nette \DI \CompilerExtension ;
77use Nette \DI \Definitions \ServiceDefinition ;
8- use Nette \DI \Statement ;
8+ use Nette \DI \Definitions \ Statement ;
99use Nette \Schema \Expect ;
1010use Nette \Schema \Schema ;
1111use Spaze \Encryption \Symmetric \StaticKey ;
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ class MysqlSessionHandler implements SessionHandlerInterface
1919 use SmartObject;
2020
2121
22- private Explorer $ explorer ;
23-
2422 private ?StaticKeyEncryption $ encryptionService = null ;
2523
2624 private string $ tableName ;
@@ -51,9 +49,9 @@ class MysqlSessionHandler implements SessionHandlerInterface
5149 public $ onBeforeDataWrite ;
5250
5351
54- public function __construct (Explorer $ explorer )
55- {
56- $ this -> explorer = $ explorer ;
52+ public function __construct (
53+ private Explorer $ explorer ,
54+ ) {
5755 }
5856
5957
You can’t perform that action at this time.
0 commit comments