File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 7
7
'dir ' => $ lib
8
8
];
9
9
10
+ if (!class_exists (\SP \Modules \Web \Plugins \Authenticator \Plugin::class)) {
11
+ /** @var \Composer\Autoload\ClassLoader $loader */
12
+ $ loader = require APP_ROOT . DIRECTORY_SEPARATOR . 'vendor ' . DIRECTORY_SEPARATOR . 'autoload.php ' ;
13
+ $ loader ->addPsr4 ($ base ['namespace ' ], $ base ['dir ' ]);
14
+ $ loader ->addClassMap ([
15
+ \SP \Modules \Web \Controllers \AuthenticatorController::class => $ lib . DIRECTORY_SEPARATOR . 'Controllers ' . DIRECTORY_SEPARATOR . 'AuthenticatorController.php ' ,
16
+ \SP \Modules \Web \Controllers \AuthenticatorLoginController::class => $ lib . DIRECTORY_SEPARATOR . 'Controllers ' . DIRECTORY_SEPARATOR . 'AuthenticatorLoginController.php '
17
+ ]);
18
+ }
19
+
10
20
return $ base ;
Original file line number Diff line number Diff line change 20
20
},
21
21
"require" : {
22
22
"syspass/extension-installer-plugin" : " *" ,
23
- "php" : " ~7.0 || ~7.1 || ~7.2"
23
+ "php" : " ~7.0 || ~7.1 || ~7.2" ,
24
+ "bacon/bacon-qr-code" : " ^2.0"
24
25
},
25
26
"extra" : {
26
27
"type" : " web"
You can’t perform that action at this time.
0 commit comments