Skip to content

Commit

Permalink
Replace the sylius_invoicing_plugin prefix with sylius_invoicing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMilek committed Nov 21, 2024
1 parent b7dd983 commit 07f37e6
Show file tree
Hide file tree
Showing 17 changed files with 115 additions and 101 deletions.
10 changes: 5 additions & 5 deletions config/admin_routes.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sylius_invoicing_plugin_invoice:
resource: |
alias: sylius_invoicing_plugin.invoice
alias: sylius_invoicing.invoice
section: admin
templates: "@SyliusAdmin\\Crud"
only: ['index']
Expand All @@ -19,7 +19,7 @@ sylius_invoicing_plugin_admin_invoice_show:
path: /invoices/{id}
methods: [GET]
defaults:
_controller: sylius_invoicing_plugin.controller.invoice::showAction
_controller: sylius_invoicing.controller.invoice::showAction
_sylius:
section: admin
permission: true
Expand All @@ -29,19 +29,19 @@ sylius_invoicing_plugin_admin_invoice_download:
path: /invoices/{id}/download
methods: [GET]
defaults:
_controller: sylius_invoicing_plugin.ui.action.download_invoice
_controller: sylius_invoicing.ui.action.download_invoice

sylius_invoicing_plugin_admin_invoice_resend:
path: /invoices/{id}/resend
methods: [GET]
defaults:
_controller: sylius_invoicing_plugin.ui.action.resend_invoice
_controller: sylius_invoicing.ui.action.resend_invoice

sylius_invoicing_plugin_admin_order_invoices_partial:
path: /_partial/invoices/{orderNumber}/
methods: [GET]
defaults:
_controller: sylius_invoicing_plugin.controller.invoice::indexAction
_controller: sylius_invoicing.controller.invoice::indexAction
_sylius:
template: $template
repository:
Expand Down
4 changes: 2 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ winzou_state_machine:
after:
sylius_invoicing_plugin_payment_complete_producer:
on: ['complete']
do: ['@sylius_invoicing_plugin.event_producer.order_payment_paid', '__invoke']
do: ['@sylius_invoicing.event_producer.order_payment_paid', '__invoke']
args: ['object']

sylius_grid:
Expand All @@ -32,7 +32,7 @@ sylius_grid:
driver:
name: doctrine/orm
options:
class: '%sylius_invoicing_plugin.model.invoice.class%'
class: '%sylius_invoicing.model.invoice.class%'
sorting:
issuedAt: desc
fields:
Expand Down
32 changes: 19 additions & 13 deletions config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,52 @@
<services>
<defaults public="true" />

<service id="sylius_invoicing_plugin.email.invoice_email_sender" class="Sylius\InvoicingPlugin\Email\InvoiceEmailSender">
<service id="sylius_invoicing.email.invoice_email_sender" class="Sylius\InvoicingPlugin\Email\InvoiceEmailSender">
<argument type="service" id="sylius.email_sender" />
<argument type="service" id="Sylius\InvoicingPlugin\Provider\InvoiceFileProviderInterface" />
<argument>%sylius_invoicing.pdf_generator.enabled%</argument>
</service>
<service id="Sylius\InvoicingPlugin\Email\InvoiceEmailSenderInterface" alias="sylius_invoicing.email.invoice_email_sender" />

<service id="sylius_invoicing_plugin.command_handler.send_invoice_email" class="Sylius\InvoicingPlugin\CommandHandler\SendInvoiceEmailHandler">
<argument type="service" id="sylius_invoicing_plugin.repository.invoice" />
<service id="sylius_invoicing.command_handler.send_invoice_email" class="Sylius\InvoicingPlugin\CommandHandler\SendInvoiceEmailHandler">
<argument type="service" id="sylius_invoicing.repository.invoice" />
<argument type="service" id="sylius.repository.order" />
<argument type="service" id="sylius_invoicing_plugin.email.invoice_email_sender" />
<argument type="service" id="sylius_invoicing.email.invoice_email_sender" />
<tag name="messenger.message_handler" />
</service>

<service id="sylius_invoicing_plugin_security.voter.invoice" class="Sylius\InvoicingPlugin\Security\Voter\InvoiceVoter">
<service id="sylius_invoicing.security.voter.invoice" class="Sylius\InvoicingPlugin\Security\Voter\InvoiceVoter">
<argument type="service" id="sylius.repository.order" />
<tag name="security.voter" />
</service>

<service id="sylius_invoicing_plugin.provider.tax_rate_percentage" class="Sylius\InvoicingPlugin\Provider\TaxRatePercentageProvider" />
<service id="sylius_invoicing.provider.tax_rate_percentage" class="Sylius\InvoicingPlugin\Provider\TaxRatePercentageProvider" />
<service id="Sylius\InvoicingPlugin\Provider\TaxRatePercentageProviderInterface" alias="sylius_invoicing.provider.tax_rate_percentage" />

<service id="sylius_invoicing_plugin.custom_factory.invoice" class="Sylius\InvoicingPlugin\Factory\InvoiceFactory">
<argument>%sylius_invoicing_plugin.model.invoice.class%</argument>
<argument type="service" id="sylius_invoicing_plugin.factory.shop_billing_data" />
<service id="sylius_invoicing.custom_factory.invoice" class="Sylius\InvoicingPlugin\Factory\InvoiceFactory">
<argument>%sylius_invoicing.model.invoice.class%</argument>
<argument type="service" id="sylius_invoicing.factory.shop_billing_data" />
</service>
<service id="Sylius\InvoicingPlugin\Factory\InvoiceFactoryInterface" alias="sylius_invoicing.custom_factory.invoice" />

<service id="Sylius\InvoicingPlugin\Manager\InvoiceFileManagerInterface" class="Sylius\InvoicingPlugin\Manager\InvoiceFileManager">
<service id="sylius_invoicing.manager.invoice_file" class="Sylius\InvoicingPlugin\Manager\InvoiceFileManager">
<argument type="service" id="gaufrette.sylius_invoicing_invoice_filesystem" />
</service>
<service id="Sylius\InvoicingPlugin\Manager\InvoiceFileManagerInterface" alias="sylius_invoicing.manager.invoice_file" />

<service id="Sylius\InvoicingPlugin\Provider\InvoiceFileProviderInterface" class="Sylius\InvoicingPlugin\Provider\InvoiceFileProvider">
<service id="sylius_invoicing.provider.invoice_file" class="Sylius\InvoicingPlugin\Provider\InvoiceFileProvider">
<argument type="service" id="Sylius\InvoicingPlugin\Generator\InvoiceFileNameGeneratorInterface" />
<argument type="service" id="gaufrette.sylius_invoicing_invoice_filesystem" />
<argument type="service" id="sylius_invoicing_plugin.generator.invoice_pdf_file" />
<argument type="service" id="sylius_invoicing.generator.invoice_pdf_file" />
<argument type="service" id="Sylius\InvoicingPlugin\Manager\InvoiceFileManagerInterface" />
<argument>%sylius_invoicing.invoice_save_path%</argument>
</service>
<service id="Sylius\InvoicingPlugin\Provider\InvoiceFileProviderInterface" alias="sylius_invoicing.provider.invoice_file" />

<service
id="Sylius\InvoicingPlugin\Provider\UnitNetPriceProviderInterface"
id="sylius_invoicing.provider.unit_net_price"
class="Sylius\InvoicingPlugin\Provider\UnitNetPriceProvider"
/>
<service id="Sylius\InvoicingPlugin\Provider\UnitNetPriceProviderInterface" alias="sylius_invoicing.provider.unit_net_price" />
</services>
</container>
10 changes: 5 additions & 5 deletions config/services/actions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<services>
<defaults public="true" />

<service id="sylius_invoicing_plugin.ui.action.download_invoice" class="Sylius\InvoicingPlugin\Ui\Action\DownloadInvoiceAction">
<argument type="service" id="sylius_invoicing_plugin.repository.invoice" />
<service id="sylius_invoicing.ui.action.download_invoice" class="Sylius\InvoicingPlugin\Ui\Action\DownloadInvoiceAction">
<argument type="service" id="sylius_invoicing.repository.invoice" />
<argument type="service" id="security.authorization_checker" />
<argument type="service" id="Sylius\InvoicingPlugin\Provider\InvoiceFileProviderInterface" />
<argument>%sylius_invoicing.pdf_generator.enabled%</argument>
</service>

<service id="sylius_invoicing_plugin.ui.action.resend_invoice" class="Sylius\InvoicingPlugin\Ui\Action\Admin\ResendInvoiceAction">
<argument type="service" id="sylius_invoicing_plugin.repository.invoice" />
<argument type="service" id="sylius_invoicing_plugin.email.invoice_email_sender" />
<service id="sylius_invoicing.ui.action.resend_invoice" class="Sylius\InvoicingPlugin\Ui\Action\Admin\ResendInvoiceAction">
<argument type="service" id="sylius_invoicing.repository.invoice" />
<argument type="service" id="sylius_invoicing.email.invoice_email_sender" />
<argument type="service" id="sylius.repository.order" />
<argument type="service" id="router" />
<argument type="service" id="request_stack" />
Expand Down
4 changes: 2 additions & 2 deletions config/services/cli.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<services>
<defaults public="true" />

<service id="sylius_invoicing_plugin.cli.generate_invoices" class="Sylius\InvoicingPlugin\Cli\GenerateInvoicesCommand">
<argument type="service" id="sylius_invoicing_plugin.creator.mass_invoices" />
<service id="sylius_invoicing.cli.generate_invoices" class="Sylius\InvoicingPlugin\Cli\GenerateInvoicesCommand">
<argument type="service" id="sylius_invoicing.creator.mass_invoices" />
<argument type="service" id="sylius.repository.order" />
<tag name="console.command" />
</service>
Expand Down
19 changes: 10 additions & 9 deletions config/services/converters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
<services>
<defaults public="true" />

<service id="sylius_invoicing_plugin.converter.order_item_units_to_line_items" class="Sylius\InvoicingPlugin\Converter\OrderItemUnitsToLineItemsConverter">
<argument type="service" id="sylius_invoicing_plugin.provider.tax_rate_percentage" />
<argument type="service" id="sylius_invoicing_plugin.factory.line_item" />
<service id="sylius_invoicing.converter.order_item_units_to_line_items" class="Sylius\InvoicingPlugin\Converter\OrderItemUnitsToLineItemsConverter">
<argument type="service" id="sylius_invoicing.provider.tax_rate_percentage" />
<argument type="service" id="sylius_invoicing.factory.line_item" />
<argument type="service" id="Sylius\InvoicingPlugin\Provider\UnitNetPriceProviderInterface" />
</service>

<service id="sylius_invoicing_plugin.converter.shipping_adjustments_to_line_items" class="Sylius\InvoicingPlugin\Converter\ShippingAdjustmentsToLineItemsConverter">
<argument type="service" id="sylius_invoicing_plugin.provider.tax_rate_percentage" />
<argument type="service" id="sylius_invoicing_plugin.factory.line_item" />
<service id="sylius_invoicing.converter.shipping_adjustments_to_line_items" class="Sylius\InvoicingPlugin\Converter\ShippingAdjustmentsToLineItemsConverter">
<argument type="service" id="sylius_invoicing.provider.tax_rate_percentage" />
<argument type="service" id="sylius_invoicing.factory.line_item" />
</service>

<service id="sylius_invoicing_plugin.converter.tax_items" class="Sylius\InvoicingPlugin\Converter\TaxItemsConverter">
<argument type="service" id="sylius_invoicing_plugin.provider.tax_rate_percentage" />
<argument type="service" id="sylius_invoicing_plugin.factory.tax_item" />
<service id="sylius_invoicing.converter.tax_items" class="Sylius\InvoicingPlugin\Converter\TaxItemsConverter">
<argument type="service" id="sylius_invoicing.provider.tax_rate_percentage" />
<argument type="service" id="sylius_invoicing.factory.tax_item" />
</service>
<service id="Sylius\InvoicingPlugin\Converter\TaxItemsConverterInterface" alias="sylius_invoicing.converter.tax_items" />
</services>
</container>
8 changes: 4 additions & 4 deletions config/services/fixtures.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<services>
<defaults public="true" />

<service id="sylius_invoicing_plugin.fixture.example_factory.invoicing_plugin_shop_billing_data" class="Sylius\InvoicingPlugin\Fixture\Factory\ShopBillingDataExampleFactory">
<service id="sylius_invoicing.fixture.example_factory.invoicing_plugin_shop_billing_data" class="Sylius\InvoicingPlugin\Fixture\Factory\ShopBillingDataExampleFactory">
<argument id="sylius.repository.channel" type="service"/>
<argument id="sylius.factory.shop_billing_data" type="service"/>
</service>

<service id="sylius_invoicing_plugin.fixture.shop_billing_data_fixture" class="Sylius\InvoicingPlugin\Fixture\ShopBillingDataFixture">
<service id="sylius_invoicing.fixture.shop_billing_data_fixture" class="Sylius\InvoicingPlugin\Fixture\ShopBillingDataFixture">
<argument id="sylius.manager.channel" type="service"/>
<argument id="sylius_invoicing_plugin.fixture.example_factory.invoicing_plugin_shop_billing_data" type="service"/>
<argument id="sylius_invoicing.fixture.example_factory.invoicing_plugin_shop_billing_data" type="service"/>
<tag name="sylius_fixtures.fixture"/>
</service>

<service id="Sylius\InvoicingPlugin\Fixture\Listener\InvoicesPurgerListener">
<service id="sylius_invoicing.fixture.listener.invoices_purger" class="Sylius\InvoicingPlugin\Fixture\Listener\InvoicesPurgerListener">
<argument type="service" id="filesystem" />
<argument>%sylius_invoicing.invoice_save_path%</argument>
<tag name="sylius_fixtures.listener" />
Expand Down
Loading

0 comments on commit 07f37e6

Please sign in to comment.