Guest User

Untitled

a guest
Feb 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. /**
  2. * @var MagentoFrameworkAppConfigScopeConfigInterface
  3. */
  4. protected $scopeConfig;
  5.  
  6.  
  7. public function __construct(
  8. ......
  9. MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig)
  10. {
  11. $this->scopeConfig = $scopeConfig;
  12. }
  13.  
  14.  
  15.  
  16. public function getLocalFolderName() {
  17. $storeScope = MagentoStoreModelScopeInterface::SCOPE_STORE;
  18.  
  19. return $this->scopeConfig->getValue(self::XML_PATH_LOCAL_PATH, $storeScope);
  20.  
  21.  
  22. }
Add Comment
Please, Sign In to add comment