Definition at line 13 of file QueryResolver.php.
◆ __construct()
- Parameters
-
ConfigInterface | $config | |
CacheInterface | $cache | |
string | $cacheId | |
SerializerInterface | $serializer | |
Definition at line 53 of file QueryResolver.php.
61 $this->cacheId = $cacheId;
◆ initData()
Initialise data for configuration
- Returns
- void
Definition at line 82 of file QueryResolver.php.
84 $data = $this->cache->load($this->cacheId);
85 if (
false ===
$data) {
86 $singleQuery = $this->config->getConnectionName(
'checkout_setup') ==
'default' ? true :
false;
87 $data[
'checkout'] = $singleQuery;
88 $this->cache->save($this->serializer->serialize(
$data), $this->cacheId, $this->cacheTags);
◆ isSingleQuery()
Get flag value
- Returns
- bool
Definition at line 70 of file QueryResolver.php.
72 if (!isset($this->data[
'checkout'])) {
75 return $this->data[
'checkout'];
◆ merge()
Merge config data to the object
- Parameters
-
- Returns
- void
Definition at line 101 of file QueryResolver.php.
103 $this->data = array_replace_recursive($this->data,
$config);
The documentation for this class was generated from the following file: