コード例 #1
0
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->_manObj = ObjectManager::getInstance();
     $this->_logger = $this->_manObj->get(\Psr\Log\LoggerInterface::class);
     $this->_resource = $this->_manObj->get(\Magento\Framework\App\ResourceConnection::class);
     $this->_conn = $this->_resource->getConnection();
     $this->_toolPeriod = $this->_manObj->get(IPeriod::class);
     /* base services */
     $this->_callDownlineCustomer = $this->_manObj->get(\Praxigento\Downline\Service\ICustomer::class);
     $this->_callDownlineSnap = $this->_manObj->get(\Praxigento\Downline\Service\ISnap::class);
     /* set up application */
     $this->_setAreaCode();
 }
コード例 #2
0
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->_manObj = \Magento\Framework\App\ObjectManager::getInstance();
     $this->_manTrans = $this->_manObj->get(\Praxigento\Core\Transaction\Database\IManager::class);
 }