diff --git a/Controller/Adminhtml/Authy/Authpost.php b/Controller/Adminhtml/Authy/Authpost.php index 48569ee..f33a34e 100644 --- a/Controller/Adminhtml/Authy/Authpost.php +++ b/Controller/Adminhtml/Authy/Authpost.php @@ -74,7 +74,6 @@ public function __construct( Authy $authy, TfaSessionInterface $tfaSession, TrustedManagerInterface $trustedManager, - EventInterface $event, TfaInterface $tfa ) { parent::__construct($context); @@ -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; } diff --git a/Controller/Adminhtml/Authy/Verifyonetouch.php b/Controller/Adminhtml/Authy/Verifyonetouch.php index c55e2ba..cc49277 100644 --- a/Controller/Adminhtml/Authy/Verifyonetouch.php +++ b/Controller/Adminhtml/Authy/Verifyonetouch.php @@ -73,7 +73,6 @@ public function __construct( TrustedManagerInterface $trustedManager, TfaSessionInterface $tfaSession, TfaInterface $tfa, - EventInterface $event, Authy $authy, Session $session ) { @@ -84,7 +83,7 @@ public function __construct( $this->tfa = $tfa; $this->trustedManager = $trustedManager; $this->tfaSession = $tfaSession; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/Controller/Adminhtml/Authy/Verifypost.php b/Controller/Adminhtml/Authy/Verifypost.php index 728168a..753e27d 100644 --- a/Controller/Adminhtml/Authy/Verifypost.php +++ b/Controller/Adminhtml/Authy/Verifypost.php @@ -68,8 +68,7 @@ public function __construct( TfaInterface $tfa, TfaSessionInterface $tfaSession, Authy $authy, - PageFactory $pageFactory, - EventInterface $event + PageFactory $pageFactory ) { parent::__construct($context); $this->pageFactory = $pageFactory; @@ -77,7 +76,7 @@ public function __construct( $this->tfa = $tfa; $this->authy = $authy; $this->tfaSession = $tfaSession; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/Controller/Adminhtml/Duo/Authpost.php b/Controller/Adminhtml/Duo/Authpost.php index 49b1d50..34a815a 100644 --- a/Controller/Adminhtml/Duo/Authpost.php +++ b/Controller/Adminhtml/Duo/Authpost.php @@ -67,7 +67,6 @@ public function __construct( PageFactory $pageFactory, DuoSecurity $duoSecurity, TfaSessionInterface $tfaSession, - EventInterface $event, TfaInterface $tfa ) { parent::__construct($context); @@ -76,7 +75,7 @@ public function __construct( $this->pageFactory = $pageFactory; $this->tfaSession = $tfaSession; $this->duoSecurity = $duoSecurity; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/Controller/Adminhtml/Google/Authpost.php b/Controller/Adminhtml/Google/Authpost.php index 717b40a..7238e4e 100644 --- a/Controller/Adminhtml/Google/Authpost.php +++ b/Controller/Adminhtml/Google/Authpost.php @@ -73,7 +73,6 @@ public function __construct( Google $google, TfaSessionInterface $tfaSession, TrustedManagerInterface $trustedManager, - EventInterface $event, TfaInterface $tfa ) { parent::__construct($context); @@ -83,7 +82,7 @@ public function __construct( $this->google = $google; $this->tfaSession = $tfaSession; $this->trustedManager = $trustedManager; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/Controller/Adminhtml/Google/Configurepost.php b/Controller/Adminhtml/Google/Configurepost.php index 15a8ef1..c9e5e8a 100644 --- a/Controller/Adminhtml/Google/Configurepost.php +++ b/Controller/Adminhtml/Google/Configurepost.php @@ -66,7 +66,6 @@ public function __construct( PageFactory $pageFactory, Google $google, TfaSessionInterface $tfaSession, - EventInterface $event, TfaInterface $tfa ) { parent::__construct($context); @@ -75,7 +74,7 @@ public function __construct( $this->pageFactory = $pageFactory; $this->google = $google; $this->tfaSession = $tfaSession; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/Controller/Adminhtml/U2f/Authpost.php b/Controller/Adminhtml/U2f/Authpost.php index 1e75d71..007e450 100644 --- a/Controller/Adminhtml/U2f/Authpost.php +++ b/Controller/Adminhtml/U2f/Authpost.php @@ -71,7 +71,6 @@ public function __construct( TfaSessionInterface $tfaSession, TrustedManagerInterface $trustedManager, U2fKey $u2fKey, - EventInterface $event, Action\Context $context ) { parent::__construct($context); @@ -82,7 +81,7 @@ public function __construct( $this->jsonFactory = $jsonFactory; $this->tfaSession = $tfaSession; $this->trustedManager = $trustedManager; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/Controller/Adminhtml/U2f/Configurepost.php b/Controller/Adminhtml/U2f/Configurepost.php index 7b6fb10..36f40b3 100644 --- a/Controller/Adminhtml/U2f/Configurepost.php +++ b/Controller/Adminhtml/U2f/Configurepost.php @@ -66,7 +66,6 @@ public function __construct( JsonFactory $jsonFactory, TfaSessionInterface $tfaSession, U2fKey $u2fKey, - EventInterface $event, Action\Context $context ) { parent::__construct($context); @@ -76,7 +75,7 @@ public function __construct( $this->u2fKey = $u2fKey; $this->jsonFactory = $jsonFactory; $this->tfaSession = $tfaSession; - $this->event = $event; + $this->event = $context->getEventManager(); } /** diff --git a/etc/module.xml b/etc/module.xml index 860e355..b9c07bf 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -21,7 +21,7 @@ --> - +