Skip to content

Commit

Permalink
changed excluded_attributes to excluded_product_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGrimmChester committed Mar 25, 2024
1 parent ca82868 commit 8ee0fff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/CONFIGURE_DETAIL.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ This part allows you to manually map an Akeneo attribute to a Sylius attribute b
# config/packages/synolia_akeneo_plugin.yaml
synolia_sylius_akeneo:
excluded_attributes:
excluded_product_attributes:
- supplier
- supplier_size
```
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getConfigTreeBuilder()
->end()
->end()

->arrayNode('excluded_attributes')
->arrayNode('excluded_product_attributes')
->scalarPrototype()->example(['supplier'])->defaultValue([])->end()
->end()

Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/SynoliaSyliusAkeneoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function processExcludedAttributes(ContainerBuilder $container, array $c
{
$localeMappingConfigurationDefinition = $container->getDefinition(ExcludedAttributesConfiguration::class);
$localeMappingConfigurationDefinition
->setArgument('$excludedAttributeCodes', $config['excluded_attributes'])
->setArgument('$excludedAttributeCodes', $config['excluded_product_attributes'])
;

$container->setAlias(ExcludedAttributesConfigurationInterface::class, ExcludedAttributesConfiguration::class);
Expand Down

0 comments on commit 8ee0fff

Please sign in to comment.