File tree Expand file tree Collapse file tree 8 files changed +107
-195
lines changed Expand file tree Collapse file tree 8 files changed +107
-195
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
use Magento \Framework \Encryption \Encryptor ;
15
15
use Magento \Framework \Exception \LocalizedException ;
16
16
use Magento \Framework \Exception \NoSuchEntityException ;
17
+ use Magento \AdobeImsApi \Api \LogOutInterface ;
17
18
18
19
class FlushUserTokens implements FlushUserTokensInterface
19
20
{
@@ -28,9 +29,9 @@ class FlushUserTokens implements FlushUserTokensInterface
28
29
private UserContextInterface $ userContext ;
29
30
30
31
/**
31
- * @var LogOut
32
+ * @var LogOutInterface
32
33
*/
33
- private LogOut $ logOut ;
34
+ private LogOutInterface $ logOut ;
34
35
35
36
/**
36
37
* @var Encryptor
@@ -42,13 +43,13 @@ class FlushUserTokens implements FlushUserTokensInterface
42
43
*
43
44
* @param ImsWebapiRepositoryInterface $imsWebapiRepository
44
45
* @param UserContextInterface $userContext
45
- * @param LogOut $logOut
46
+ * @param LogOutInterface $logOut
46
47
* @param Encryptor $encryptor
47
48
*/
48
49
public function __construct (
49
50
ImsWebapiRepositoryInterface $ imsWebapiRepository ,
50
51
UserContextInterface $ userContext ,
51
- LogOut $ logOut ,
52
+ LogOutInterface $ logOut ,
52
53
Encryptor $ encryptor
53
54
) {
54
55
$ this ->imsWebapiRepository = $ imsWebapiRepository ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \AdminAdobeIms \Observer ;
10
10
11
- use Magento \AdminAdobeIms \ Model \ LogOut ;
11
+ use Magento \AdobeImsApi \ Api \ LogOutInterface ;
12
12
use Magento \Framework \Event \Observer ;
13
13
use Magento \Framework \Event \ObserverInterface ;
14
14
15
15
class AdminLogoutObserver implements ObserverInterface
16
16
{
17
17
/**
18
- * @var LogOut
18
+ * @var LogOutInterface
19
19
*/
20
- private LogOut $ logOut ;
20
+ private LogOutInterface $ logOut ;
21
21
22
22
/**
23
- * @param LogOut $logOut
23
+ * @param LogOutInterface $logOut
24
24
*/
25
25
public function __construct (
26
- LogOut $ logOut
26
+ LogOutInterface $ logOut
27
27
) {
28
28
$ this ->logOut = $ logOut ;
29
29
}
Original file line number Diff line number Diff line change 12
12
use Exception ;
13
13
use Magento \AdminAdobeIms \Exception \AdobeImsAuthorizationException ;
14
14
use Magento \AdminAdobeIms \Model \Auth ;
15
- use Magento \AdminAdobeIms \ Model \ LogOut ;
15
+ use Magento \AdobeImsApi \ Api \ LogOutInterface ;
16
16
use Magento \AdminAdobeIms \Model \User ;
17
17
use Magento \AdobeImsApi \Api \Data \TokenResponseInterface ;
18
18
use Magento \Framework \Stdlib \DateTime \DateTime ;
@@ -35,20 +35,20 @@ abstract class AbstractAdminBaseProcessService
35
35
protected DateTime $ dateTime ;
36
36
37
37
/**
38
- * @var LogOut
38
+ * @var LogOutInterface
39
39
*/
40
- private LogOut $ logOut ;
40
+ private LogOutInterface $ logOut ;
41
41
42
42
/**
43
43
* @param User $adminUser
44
44
* @param Auth $auth
45
- * @param LogOut $logOut
45
+ * @param LogOutInterface $logOut
46
46
* @param DateTime $dateTime
47
47
*/
48
48
public function __construct (
49
49
User $ adminUser ,
50
50
Auth $ auth ,
51
- LogOut $ logOut ,
51
+ LogOutInterface $ logOut ,
52
52
DateTime $ dateTime
53
53
) {
54
54
$ this ->adminUser = $ adminUser ;
Original file line number Diff line number Diff line change 11
11
use Exception ;
12
12
use Magento \AdminAdobeIms \Exception \AdobeImsAuthorizationException ;
13
13
use Magento \AdminAdobeIms \Model \Auth ;
14
- use Magento \AdminAdobeIms \Model \LogOut ;
15
14
use Magento \AdminAdobeIms \Model \User ;
16
15
use Magento \AdminAdobeIms \Service \AdminLoginProcessService ;
16
+ use Magento \AdobeIms \Model \LogOut ;
17
17
use Magento \AdobeImsApi \Api \Data \TokenResponseInterface ;
18
18
use Magento \Backend \Model \Auth \StorageInterface ;
19
19
use Magento \Framework \Stdlib \DateTime \DateTime ;
@@ -70,8 +70,7 @@ protected function setUp(): void
70
70
71
71
$ session = $ this ->getMockBuilder (StorageInterface::class)
72
72
->addMethods (['setAdobeAccessToken ' , 'setTokenLastCheckTime ' ])
73
- ->getMockForAbstractClass ()
74
- ;
73
+ ->getMockForAbstractClass ();
75
74
$ session
76
75
->method ('setAdobeAccessToken ' )
77
76
->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments