24 private $scopeResolver;
35 $this->scopeResolver = $scopeResolver;
46 foreach ($dimensions as $dimension) {
47 switch ($dimension->getName()) {
49 $tableNameParts[$dimension->getName()] = $dimension->getName() . $this->getScopeId($dimension);
52 $tableNameParts[$dimension->getName()] = $dimension->getName() . $dimension->getValue();
55 ksort($tableNameParts);
56 array_unshift($tableNameParts,
$index);
58 return $this->resource->getTableName(implode(
'_', $tableNameParts));
67 private function getScopeId($dimension)
69 $scopeId = $dimension->getValue();
71 if (!is_numeric($scopeId)) {
72 $scopeId = $this->scopeResolver->getScope($scopeId)->getId();
resolve($index, array $dimensions)
__construct(ResourceConnection $resource, ScopeResolverInterface $scopeResolver)