コード例 #1
0
ファイル: Schedule.php プロジェクト: CelebrosLtd/M2_Celexport
 /**
  * @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
ファイル: Manual.php プロジェクト: CelebrosLtd/M2_Celexport
 /**
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Backend\App\Action\Context $context)
 {
     parent::__construct($context);
 }