Skip to content

Commit

Permalink
Fix fatal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Shanahan-Kluth committed Jun 18, 2020
1 parent 398cb10 commit 7f74859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Observer/DisableFrontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace FocusriteNovation\DisableFrontend\Observer;

use FocusriteNovation\DisableFrontend\Helper\Data as DisableFrontendHelper;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\App\ActionFlag;
use Magento\Framework\App\Action\Action;
Expand Down Expand Up @@ -59,10 +60,10 @@ public function __construct(
* Frontend.
*
* @author Abel Bolanos Martinez <[email protected]>
* @param \Magento\Framework\Event\ObserverInterface $observer
* @param \Magento\Framework\Event\Observer $observer
* @return void
*/
public function execute(ObserverInterface $observer)
public function execute(Observer $observer)
{
// Shows a blank page if all else fails.
$this->_actionFlag->set('', Action::FLAG_NO_DISPATCH, true);
Expand Down

0 comments on commit 7f74859

Please sign in to comment.