![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/wyomind/framework/Observer/ |
<?php /** * Copyright © 2017 Magento. All rights reserved. * See COPYING.txt for license details. */ /** * Copyright © 2020 Wyomind. All rights reserved. * See LICENSE.txt for license details. */ namespace Wyomind\Framework\Observer; /** * Class ControllerActionPredispatch * @package Wyomind\Framework\Observer */ class ControllerActionPredispatch implements \Magento\Framework\Event\ObserverInterface { /** * @var \Magento\Backend\Model\Auth\Session */ protected $backendAuthSession; /** * @var \Magento\Framework\UrlInterface */ public $url; /** * @var \Wyomind\Framework\Helper\Module */ public $module; /** * Class constructor * @param \Wyomind\Framework\Helper\Module $module * @param \Magento\Backend\Model\Auth\Session $backendAuthSession * @param \Magento\Framework\UrlInterface $url */ public function __construct( \Wyomind\Framework\Helper\Module $module, \Magento\Backend\Model\Auth\Session $backendAuthSession, \Magento\Framework\UrlInterface $url ) { $this->module = $module; $this->backendAuthSession = $backendAuthSession; $this->url = $url; } /** * Execute the observer * @param \Magento\Framework\Event\Observer $observer * @return */ public function execute(\Magento\Framework\Event\Observer $observer) { //if ($this->backendAuthSession->isLoggedIn()) { $this->module->constructor($this, func_get_args(), $observer); return $this; //} } }