Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-store
Model
Resolver
Store.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Store\Model\Resolver
;
8
9
class
Store
implements
\Magento\Framework\App\ScopeResolverInterface
10
{
14
protected
$_storeManager
;
15
19
public
function
__construct
(\
Magento
\
Store
\Model\
StoreManagerInterface
$storeManager
)
20
{
21
$this->_storeManager =
$storeManager
;
22
}
23
28
public
function
getScope
($scopeId =
null
)
29
{
30
$scope = $this->_storeManager->getStore($scopeId);
31
if
(!$scope instanceof \
Magento
\Framework\
App
\
ScopeInterface
) {
32
throw
new \Magento\Framework\Exception\State\InitException(
33
__
(
'The scope object is invalid. Verify the scope object and try again.'
)
34
);
35
}
36
37
return
$scope;
38
}
39
45
public
function
getScopes
()
46
{
47
return
$this->_storeManager->getStores();
48
}
49
}
Magento\Store\Model\Resolver\Store\__construct
__construct(\Magento\Store\Model\StoreManagerInterface $storeManager)
Definition:
Store.php:19
Magento\Framework\App
Magento\Store\Model\Resolver
Definition:
Group.php:7
Magento\Store\Model\Resolver\Store\getScope
getScope($scopeId=null)
Definition:
Store.php:28
$storeManager
$storeManager
Definition:
paypal_quote.php:14
Magento\Store\Model\Resolver\Store\getScopes
getScopes()
Definition:
Store.php:45
__
__()
Definition:
__.php:13
Magento\Store\Model\Resolver\Store\$_storeManager
$_storeManager
Definition:
Store.php:14
Magento\Framework\App\ScopeResolverInterface
Definition:
ScopeResolverInterface.php:11
Magento\Framework\App\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Store\Model\StoreManagerInterface
Definition:
StoreManagerInterface.php:17
Magento\Store\Model\Resolver\Store
Definition:
Store.php:9
Magento