1
0
mirror of synced 2024-11-28 16:06:06 +03:00
magento-module/Cron/OrderHistory.php
2018-03-12 16:34:48 +03:00

24 lines
519 B
PHP

<?php
namespace Retailcrm\Retailcrm\Cron;
class OrderHistory
{
protected $_logger;
public function __construct()
{
$om = \Magento\Framework\App\ObjectManager::getInstance();
$logger = new \Retailcrm\Retailcrm\Model\Logger\Logger($om);
$this->_logger = $logger;
}
public function execute()
{
$history = new \Retailcrm\Retailcrm\Model\History\Exchange();
$history->ordersHistory();
$this->_logger->writeRow('Cron Works: OrderHistory');
}
}