25 private $moduleDataSetup;
30 private $localeResolver;
41 $this->moduleDataSetup = $moduleDataSetup;
42 $this->localeResolver = $localeResolver;
51 $this->localeResolver->getLocale()
52 )[
'calendar'][
'gregorian'][
'dayNames'][
'format'][
'abbreviated'];
54 $select = $this->moduleDataSetup->getConnection()->select()->from(
55 $this->moduleDataSetup->getTable(
'core_config_data'),
56 [
'config_id',
'value']
59 'carriers/dhl/shipment_days' 61 foreach ($this->moduleDataSetup->getConnection()->fetchAll(
$select) as $configRow) {
65 array_intersect_key(iterator_to_array($days), array_flip(explode(
',', $configRow[
'value'])))
68 $this->moduleDataSetup->getConnection()->update(
69 $this->moduleDataSetup->getTable(
'core_config_data'),
71 [
'config_id = ?' => $configRow[
'config_id']]
__construct(ModuleDataSetupInterface $moduleDataSetup, \Magento\Framework\Locale\ResolverInterface $localeResolver)