1 | <?php |
||
8 | class StoreIdResolver |
||
9 | { |
||
10 | /** |
||
11 | * @var StoreManagerInterface |
||
12 | */ |
||
13 | private $storeManager; |
||
14 | |||
15 | /** |
||
16 | * @param StoreManagerInterface $storeManager |
||
17 | */ |
||
18 | public function __construct(StoreManagerInterface $storeManager) |
||
22 | |||
23 | /** |
||
24 | * Replicate the original magento behaviour for store is handling from the url model |
||
25 | * |
||
26 | * @param AbstractModel $entity |
||
27 | * @param array $params |
||
28 | * |
||
29 | * @return int |
||
30 | */ |
||
31 | public function resolve(AbstractModel $entity, array $params = []) : int |
||
45 | } |
||
46 |