Skip to content

Commit

Permalink
Rename logo parameters to be consistent with others
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Dec 4, 2024
1 parent db55f4c commit b8d185e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@

| Old | New |
|------------------------------------------------------------|-----------------------------------------------------|
| default_logo_file | sylius_invoicing.default_logo_file |
| sylius.invoicing.template.logo_file | sylius_invoicing.template.logo_file |
| sylius_invoicing_plugin.controller.billing_data.class | sylius_invoicing.controller.billing_data.class |
| sylius_invoicing_plugin.controller.invoice.class | sylius_invoicing.controller.invoice.class |
| sylius_invoicing_plugin.controller.invoice_sequence.class | sylius_invoicing.controller.invoice_sequence.class |
Expand Down
4 changes: 2 additions & 2 deletions config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
</imports>

<parameters>
<parameter key="default_logo_file">@SyliusInvoicingPlugin/assets/sylius-logo.png</parameter>
<parameter key="sylius.invoicing.template.logo_file">%env(default:default_logo_file:resolve:SYLIUS_INVOICING_LOGO_FILE)%</parameter>
<parameter key="sylius_invoicing.default_logo_file">@SyliusInvoicingPlugin/assets/sylius-logo.png</parameter>
<parameter key="sylius_invoicing.template.logo_file">%env(default:sylius_invoicing.default_logo_file:resolve:SYLIUS_INVOICING_LOGO_FILE)%</parameter>
</parameters>

<services>
Expand Down
2 changes: 1 addition & 1 deletion config/services/generators.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<argument type="service" id="file_locator" />
<argument type="service" id="sylius_invoicing.generator.invoice_file_name" />
<argument>@SyliusInvoicingPlugin/Invoice/Download/pdf.html.twig</argument>
<argument>%sylius.invoicing.template.logo_file%</argument>
<argument>%sylius_invoicing.template.logo_file%</argument>
</service>
<service id="Sylius\InvoicingPlugin\Generator\InvoicePdfFileGeneratorInterface" alias="sylius_invoicing.generator.invoice_pdf_file" />

Expand Down

0 comments on commit b8d185e

Please sign in to comment.