/** * @param string $type * * @return mixed */ protected function getMagentoObject($type) { return $this->objectManager->get($type); }
/** * 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; }
/** * @return mixed */ protected function _getScopeConfig() { return $this->objectManager->get('Magento\\Framework\\App\\Config\\ScopeConfigInterface'); }