Пример #1
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Cron\Model\Config $cronConfig
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Cron\Model\Config $cronConfig)
 {
     parent::__construct($context);
     $this->_cronConfig = $cronConfig;
     $this->_timezone = $this->_objectManager->create('Magento\\Framework\\Stdlib\\DateTime\\TimezoneInterface');
     $this->_cronSchedule = $this->_objectManager->create('Magento\\Cron\\Model\\Schedule');
 }
Пример #2
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Backend\App\Action\Context $context)
 {
     parent::__construct($context);
 }