From 63046d9bf0cbf85ebf70a9e7db7b00e3405924e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Fri, 28 Jun 2024 09:00:17 +0200 Subject: [PATCH] Change service ids to fqcns --- src/Resources/config/routes/admin.yaml | 4 ++-- src/Resources/config/routes/global.yaml | 2 +- src/Resources/config/services/client.xml | 4 ++-- src/Resources/config/services/command.xml | 2 +- src/Resources/config/services/controller.xml | 14 ++++++-------- src/Resources/config/services/data_mapper.xml | 15 +++++++-------- .../config/services/event_subscriber.xml | 12 ++++-------- src/Resources/config/services/factory.xml | 10 ++++------ src/Resources/config/services/message.xml | 12 +++++------- src/Resources/config/services/parser.xml | 5 +++-- src/Resources/config/services/processor.xml | 8 +++++--- src/Resources/config/services/provider.xml | 12 ++++++++---- src/Resources/config/services/registrar.xml | 8 +++++--- src/Resources/config/services/webhook_handler.xml | 14 +++++++------- src/SetonoSyliusPeakPlugin.php | 6 ++++-- 15 files changed, 64 insertions(+), 64 deletions(-) diff --git a/src/Resources/config/routes/admin.yaml b/src/Resources/config/routes/admin.yaml index f3c879e..924160e 100644 --- a/src/Resources/config/routes/admin.yaml +++ b/src/Resources/config/routes/admin.yaml @@ -2,10 +2,10 @@ setono_sylius_peak_admin_peak_index: path: /peak methods: [GET,POST] defaults: - _controller: setono_sylius_peak.controller.admin.peak::index + _controller: Setono\SyliusPeakPlugin\Controller\Admin\PeakController::index setono_sylius_peak_admin_peak_register_webhooks: path: /peak/register-webhooks methods: [GET] defaults: - _controller: setono_sylius_peak.controller.admin.peak::registerWebhooks + _controller: Setono\SyliusPeakPlugin\Controller\Admin\PeakController::registerWebhooks diff --git a/src/Resources/config/routes/global.yaml b/src/Resources/config/routes/global.yaml index 375d01a..ee61925 100644 --- a/src/Resources/config/routes/global.yaml +++ b/src/Resources/config/routes/global.yaml @@ -1,4 +1,4 @@ setono_sylius_peak_global_webhook: path: /peak/webhook defaults: - _controller: setono_sylius_peak.controller.handle_webhook + _controller: Setono\SyliusPeakPlugin\Controller\HandleWebhookControllerAction diff --git a/src/Resources/config/services/client.xml b/src/Resources/config/services/client.xml index 5100b63..0b586fc 100644 --- a/src/Resources/config/services/client.xml +++ b/src/Resources/config/services/client.xml @@ -2,9 +2,9 @@ - + - + %setono_sylius_peak.api_key% diff --git a/src/Resources/config/services/command.xml b/src/Resources/config/services/command.xml index 1fe2cae..d9b2048 100644 --- a/src/Resources/config/services/command.xml +++ b/src/Resources/config/services/command.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml index d954a32..8395b24 100644 --- a/src/Resources/config/services/controller.xml +++ b/src/Resources/config/services/controller.xml @@ -2,11 +2,10 @@ - + - - + + @@ -15,10 +14,9 @@ - - - + + + diff --git a/src/Resources/config/services/data_mapper.xml b/src/Resources/config/services/data_mapper.xml index ca6dd06..4bcd17e 100644 --- a/src/Resources/config/services/data_mapper.xml +++ b/src/Resources/config/services/data_mapper.xml @@ -2,25 +2,24 @@ - + + + - + - + - + diff --git a/src/Resources/config/services/event_subscriber.xml b/src/Resources/config/services/event_subscriber.xml index 1d57803..bc14230 100644 --- a/src/Resources/config/services/event_subscriber.xml +++ b/src/Resources/config/services/event_subscriber.xml @@ -2,25 +2,21 @@ - + - + %kernel.debug% - + - + diff --git a/src/Resources/config/services/factory.xml b/src/Resources/config/services/factory.xml index 1c705f5..4b96a90 100644 --- a/src/Resources/config/services/factory.xml +++ b/src/Resources/config/services/factory.xml @@ -2,16 +2,14 @@ - - + - - + diff --git a/src/Resources/config/services/message.xml b/src/Resources/config/services/message.xml index 127f983..fcc9ad6 100644 --- a/src/Resources/config/services/message.xml +++ b/src/Resources/config/services/message.xml @@ -2,20 +2,18 @@ - + - - + + %setono_sylius_peak.model.upload_order_request.class% - - + + diff --git a/src/Resources/config/services/parser.xml b/src/Resources/config/services/parser.xml index cc22678..46462ed 100644 --- a/src/Resources/config/services/parser.xml +++ b/src/Resources/config/services/parser.xml @@ -2,7 +2,8 @@ - + + + diff --git a/src/Resources/config/services/processor.xml b/src/Resources/config/services/processor.xml index 75eee33..b8a4036 100644 --- a/src/Resources/config/services/processor.xml +++ b/src/Resources/config/services/processor.xml @@ -2,9 +2,11 @@ - - + + + + diff --git a/src/Resources/config/services/provider.xml b/src/Resources/config/services/provider.xml index 84f38df..b8ae177 100644 --- a/src/Resources/config/services/provider.xml +++ b/src/Resources/config/services/provider.xml @@ -2,15 +2,19 @@ - + + + %setono_sylius_peak.model.upload_order_request.class% - + + + %sylius.model.product_variant.class% diff --git a/src/Resources/config/services/registrar.xml b/src/Resources/config/services/registrar.xml index 0eb6c63..6fd9eb3 100644 --- a/src/Resources/config/services/registrar.xml +++ b/src/Resources/config/services/registrar.xml @@ -2,9 +2,11 @@ - - + + + + diff --git a/src/Resources/config/services/webhook_handler.xml b/src/Resources/config/services/webhook_handler.xml index 44cce53..832a722 100644 --- a/src/Resources/config/services/webhook_handler.xml +++ b/src/Resources/config/services/webhook_handler.xml @@ -2,20 +2,20 @@ - + - + + + - - + + diff --git a/src/SetonoSyliusPeakPlugin.php b/src/SetonoSyliusPeakPlugin.php index fae64bb..9134180 100644 --- a/src/SetonoSyliusPeakPlugin.php +++ b/src/SetonoSyliusPeakPlugin.php @@ -5,6 +5,8 @@ namespace Setono\SyliusPeakPlugin; use Setono\CompositeCompilerPass\CompositeCompilerPass; +use Setono\SyliusPeakPlugin\DataMapper\CompositeSalesOrderDataMapper; +use Setono\SyliusPeakPlugin\WebhookHandler\CompositeWebhookHandler; use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait; use Sylius\Bundle\ResourceBundle\AbstractResourceBundle; use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; @@ -20,12 +22,12 @@ public function build(ContainerBuilder $container): void parent::build($container); $container->addCompilerPass(new CompositeCompilerPass( - 'setono_sylius_peak.data_mapper.sales_order.composite', + CompositeSalesOrderDataMapper::class, 'setono_sylius_peak.sales_order_data_mapper', )); $container->addCompilerPass(new CompositeCompilerPass( - 'setono_sylius_peak.webhook_handler.composite', + CompositeWebhookHandler::class, 'setono_sylius_peak.webhook_handler', )); }