public function CurrentStore::__construct in Commerce Core 8.2
Same name in this branch
- 8.2 modules/store/src/CurrentStore.php \Drupal\commerce_store\CurrentStore::__construct()
- 8.2 modules/store/src/Plugin/views/argument_default/CurrentStore.php \Drupal\commerce_store\Plugin\views\argument_default\CurrentStore::__construct()
Constructs a new CurrentStore object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\commerce_store\Resolver\ChainStoreResolverInterface $chain_resolver: The chain resolver.
File
- modules/
store/ src/ CurrentStore.php, line 53
Class
- CurrentStore
- Holds a reference to the current store, resolved on demand.
Namespace
Drupal\commerce_storeCode
public function __construct(RequestStack $request_stack, ChainStoreResolverInterface $chain_resolver) {
$this->requestStack = $request_stack;
$this->chainResolver = $chain_resolver;
$this->stores = new \SplObjectStorage();
}