Skip to content

Commit

Permalink
DI compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix128 committed Sep 1, 2017
1 parent 33341ff commit bf02923
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 18 deletions.
3 changes: 1 addition & 2 deletions Controller/Adminhtml/Authy/Authpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public function __construct(
Authy $authy,
TfaSessionInterface $tfaSession,
TrustedManagerInterface $trustedManager,
EventInterface $event,
TfaInterface $tfa
) {
parent::__construct($context);
Expand All @@ -83,7 +82,7 @@ public function __construct(
$this->pageFactory = $pageFactory;
$this->tfaSession = $tfaSession;
$this->trustedManager = $trustedManager;
$this->event = $event;
$this->event = $context->getEventManager();
$this->authy = $authy;
}

Expand Down
3 changes: 1 addition & 2 deletions Controller/Adminhtml/Authy/Verifyonetouch.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public function __construct(
TrustedManagerInterface $trustedManager,
TfaSessionInterface $tfaSession,
TfaInterface $tfa,
EventInterface $event,
Authy $authy,
Session $session
) {
Expand All @@ -84,7 +83,7 @@ public function __construct(
$this->tfa = $tfa;
$this->trustedManager = $trustedManager;
$this->tfaSession = $tfaSession;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
5 changes: 2 additions & 3 deletions Controller/Adminhtml/Authy/Verifypost.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,15 @@ public function __construct(
TfaInterface $tfa,
TfaSessionInterface $tfaSession,
Authy $authy,
PageFactory $pageFactory,
EventInterface $event
PageFactory $pageFactory
) {
parent::__construct($context);
$this->pageFactory = $pageFactory;
$this->session = $session;
$this->tfa = $tfa;
$this->authy = $authy;
$this->tfaSession = $tfaSession;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions Controller/Adminhtml/Duo/Authpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public function __construct(
PageFactory $pageFactory,
DuoSecurity $duoSecurity,
TfaSessionInterface $tfaSession,
EventInterface $event,
TfaInterface $tfa
) {
parent::__construct($context);
Expand All @@ -76,7 +75,7 @@ public function __construct(
$this->pageFactory = $pageFactory;
$this->tfaSession = $tfaSession;
$this->duoSecurity = $duoSecurity;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions Controller/Adminhtml/Google/Authpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public function __construct(
Google $google,
TfaSessionInterface $tfaSession,
TrustedManagerInterface $trustedManager,
EventInterface $event,
TfaInterface $tfa
) {
parent::__construct($context);
Expand All @@ -83,7 +82,7 @@ public function __construct(
$this->google = $google;
$this->tfaSession = $tfaSession;
$this->trustedManager = $trustedManager;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions Controller/Adminhtml/Google/Configurepost.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public function __construct(
PageFactory $pageFactory,
Google $google,
TfaSessionInterface $tfaSession,
EventInterface $event,
TfaInterface $tfa
) {
parent::__construct($context);
Expand All @@ -75,7 +74,7 @@ public function __construct(
$this->pageFactory = $pageFactory;
$this->google = $google;
$this->tfaSession = $tfaSession;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions Controller/Adminhtml/U2f/Authpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public function __construct(
TfaSessionInterface $tfaSession,
TrustedManagerInterface $trustedManager,
U2fKey $u2fKey,
EventInterface $event,
Action\Context $context
) {
parent::__construct($context);
Expand All @@ -82,7 +81,7 @@ public function __construct(
$this->jsonFactory = $jsonFactory;
$this->tfaSession = $tfaSession;
$this->trustedManager = $trustedManager;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions Controller/Adminhtml/U2f/Configurepost.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public function __construct(
JsonFactory $jsonFactory,
TfaSessionInterface $tfaSession,
U2fKey $u2fKey,
EventInterface $event,
Action\Context $context
) {
parent::__construct($context);
Expand All @@ -76,7 +75,7 @@ public function __construct(
$this->u2fKey = $u2fKey;
$this->jsonFactory = $jsonFactory;
$this->tfaSession = $tfaSession;
$this->event = $event;
$this->event = $context->getEventManager();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MSP_TwoFactorAuth" setup_version="2.0.6">
<module name="MSP_TwoFactorAuth" setup_version="2.0.7">
<sequence>
<module name="MSP_SecuritySuiteCommon"/>
<module name="Magento_User"/>
Expand Down

0 comments on commit bf02923

Please sign in to comment.