/**
  * @param  string $type
  *
  * @return mixed
  */
 protected function getMagentoObject($type)
 {
     return $this->objectManager->get($type);
 }
Esempio n. 2
0
 /**
  * Get Most of entire application Directory
  * @return \Magento\Framework\App\Filesystem\DirectoryList
  */
 public function getAppDir()
 {
     /** @var \Magento\Framework\App\Filesystem\DirectoryList $directoryList */
     $directoryList = $this->objectManager->get('Magento\\Framework\\App\\Filesystem\\DirectoryList')->getPath(DirectoryList::APP);
     return $directoryList;
 }
Esempio n. 3
0
 /**
  * @return mixed
  */
 protected function _getScopeConfig()
 {
     return $this->objectManager->get('Magento\\Framework\\App\\Config\\ScopeConfigInterface');
 }