Skip to content

Commit 98eb2d8

Browse files
committed
Rename parameter
1 parent dff3ca2 commit 98eb2d8

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
- { resource: "@WebgriffeSyliusItalianInvoiceableOrderPlugin/config/config.php" }
3131
```
3232
33-
4. By default, the parameter `app.taxation.eu_zone_code` is set to "EU", as it must be the code of a zone representing the EU. This is used to determine if an order is invoiced to a company within the EU or not. Please change this parameter according to your Sylius's zone configuration if needed:
33+
4. By default, the parameter `webgriffe_sylius_italian_invoiceable_order.taxation.eu_zone_code` is set to "EU", as it must be the code of a zone representing the EU. This is used to determine if an order is invoiced to a company within the EU or not. Please change this parameter according to your Sylius's zone configuration if needed:
3434

3535
```yaml
3636
# config/services.yaml
3737
parameters:
38-
app.taxation.eu_zone_code: 'EU' # Change it if needed
38+
webgriffe_sylius_italian_invoiceable_order.taxation.eu_zone_code: 'EU' # Change it if needed
3939
```
4040

4141
5. Your `Address` entity must implement the `Webgriffe\SyliusItalianInvoiceableOrderPlugin\Model\ItalianInvoiceableAddressInterface` and the `Symfony\Component\Validator\GroupSequenceProviderInterface`. You can use the `Webgriffe\SyliusItalianInvoiceableOrderPlugin\Model\ItalianInvoiceableAddressTrait` as implementation for both interfaces.

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
- The constraint `Symfony\Component\Validator\Constraints\Sandwich\ViesBundle\Validator\Constraint\VatNumber` has been replaced with `Webgriffe\SyliusItalianInvoiceableOrderPlugin\Validator\Constraints\EuropeanVatNumber`. Please update your validation rules accordingly with search and replace.
99
Please, note also that now is available a new strict option that allows you to block the checkout step if the VIES service is not available. You can enable it by setting the `strict` option to `true` in your validation rules.
1010
- The file `@WebgriffeSyliusItalianInvoiceableOrderPlugin/config/config.yaml` has been renamed to `@WebgriffeSyliusItalianInvoiceableOrderPlugin/config/config.php`.
11+
- The parameter `app.taxation.eu_zone_code` has been renamed to `webgriffe_sylius_italian_invoiceable_order.taxation.eu_zone_code`.

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return static function (ContainerConfigurator $containerConfigurator) {
88
$parameters = $containerConfigurator->parameters();
99
$parameters->set('sylius.form.type.address.validation_groups', [ 'Default' ]);
10-
$parameters->set('app.taxation.eu_zone_code', 'EU');
10+
$parameters->set('webgriffe_sylius_italian_invoiceable_order.taxation.eu_zone_code', 'EU');
1111

1212
$containerConfigurator->import('packages/*.php');
1313
};

config/services/taxation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
->args([
1414
'italian_tax_calculation_strategy',
1515
tagged_iterator('sylius.taxation.item_units.applicator'),
16-
param('app.taxation.eu_zone_code'),
16+
param('webgriffe_sylius_italian_invoiceable_order.taxation.eu_zone_code'),
1717
])
1818
->tag('sylius.taxation.calculation_strategy', [
1919
'type' => 'italian_tax_calculation_strategy',

0 commit comments

Comments
 (0)