namespace Shopware\Components\Plugin\Configuration\Layers;
use Doctrine\DBAL\Query\QueryBuilder;
class DefaultShopLayer extends AbstractShopConfigurationLayer
{ public function readValues(string
$pluginName, ?int
$shopId): array
{ return parent::
readValues($pluginName, 1
);
} protected function configureQuery(QueryBuilder
$builder, ?int
$shopId, string
$pluginName): QueryBuilder
{ $shopIdKey = 'shopId' .
abs(crc32((string) $shopId));
$pluginNameKey = 'pluginName' .
abs(crc32($pluginName));
return $builder ->
andWhere($builder->
expr()->
eq('corePlugins.name', ':' .
$pluginNameKey)) ->
andWhere($builder->
expr()->
eq('coreConfigValues.shop_id', ':' .
$shopIdKey)) ->
setParameter($pluginNameKey,
$pluginName)