diff --git a/README.md b/README.md
index 0dd6311..a4b7a64 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ Make sure you add it before `SyliusGridBundle`, otherwise you'll get
['all' => true],
+ Setono\SyliusPeakPlugin\SetonoSyliusPeakPlugin::class => ['all' => true],
Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
// ...
];
@@ -31,7 +31,7 @@ $bundles = [
```yaml
# config/routes/setono_sylius_peak_wms.yaml
setono_sylius_peak_wms:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes.yaml"
```
or if your app doesn't use locales:
@@ -39,7 +39,7 @@ or if your app doesn't use locales:
```yaml
# config/routes/setono_sylius_peak_wms.yaml
setono_sylius_peak_wms:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes_no_locale.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes_no_locale.yaml"
```
### Add environment variables
@@ -65,8 +65,8 @@ declare(strict_types=1);
namespace App\Entity\Order;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface as PeakWMSOrderInterface;
-use Setono\SyliusPeakWMSPlugin\Model\OrderTrait as PeakWMSOrderTrait;
+use Setono\SyliusPeakPlugin\Model\OrderInterface as PeakOrderInterface;
+use Setono\SyliusPeakPlugin\Model\OrderTrait as PeakOrderTrait;
use Sylius\Component\Core\Model\Order as BaseOrder;
use Doctrine\ORM\Mapping as ORM;
@@ -75,9 +75,9 @@ use Doctrine\ORM\Mapping as ORM;
*
* @ORM\Table(name="sylius_order")
*/
-class Order extends BaseOrder implements PeakWMSOrderInterface
+class Order extends BaseOrder implements PeakOrderInterface
{
- use PeakWMSOrderTrait;
+ use PeakOrderTrait;
}
```
diff --git a/composer.json b/composer.json
index c3ac17a..8ae5cba 100644
--- a/composer.json
+++ b/composer.json
@@ -72,7 +72,7 @@
"prefer-stable": true,
"autoload": {
"psr-4": {
- "Setono\\SyliusPeakWMSPlugin\\": "src/"
+ "Setono\\SyliusPeakPlugin\\": "src/"
},
"files": [
"src/Resources/functions.php"
@@ -80,7 +80,7 @@
},
"autoload-dev": {
"psr-4": {
- "Tests\\Setono\\SyliusPeakWMSPlugin\\": "tests/"
+ "Tests\\Setono\\SyliusPeakPlugin\\": "tests/"
},
"classmap": [
"tests/Application/Kernel.php"
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 187489a..d76d612 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -8,7 +8,7 @@
-
+
tests
diff --git a/src/Command/ProcessCommand.php b/src/Command/ProcessCommand.php
index 1097dfa..a5d60ff 100644
--- a/src/Command/ProcessCommand.php
+++ b/src/Command/ProcessCommand.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Command;
+namespace Setono\SyliusPeakPlugin\Command;
-use Setono\SyliusPeakWMSPlugin\Processor\UploadOrderRequestProcessorInterface;
+use Setono\SyliusPeakPlugin\Processor\UploadOrderRequestProcessorInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/src/Command/RegisterWebhooksCommand.php b/src/Command/RegisterWebhooksCommand.php
index 4783d0a..3f9275d 100644
--- a/src/Command/RegisterWebhooksCommand.php
+++ b/src/Command/RegisterWebhooksCommand.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Command;
+namespace Setono\SyliusPeakPlugin\Command;
-use Setono\SyliusPeakWMSPlugin\Message\Command\RegisterWebhooks;
+use Setono\SyliusPeakPlugin\Message\Command\RegisterWebhooks;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/src/Controller/Admin/PeakWMSController.php b/src/Controller/Admin/PeakController.php
similarity index 79%
rename from src/Controller/Admin/PeakWMSController.php
rename to src/Controller/Admin/PeakController.php
index a3a66b9..dd6a77d 100644
--- a/src/Controller/Admin/PeakWMSController.php
+++ b/src/Controller/Admin/PeakController.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Controller\Admin;
+namespace Setono\SyliusPeakPlugin\Controller\Admin;
use Setono\PeakWMS\Client\ClientInterface;
-use Setono\SyliusPeakWMSPlugin\Message\Command\RegisterWebhooks;
-use Setono\SyliusPeakWMSPlugin\Registrar\WebhookRegistrarInterface;
+use Setono\SyliusPeakPlugin\Message\Command\RegisterWebhooks;
+use Setono\SyliusPeakPlugin\Registrar\WebhookRegistrarInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Messenger\MessageBusInterface;
-final class PeakWMSController extends AbstractController
+final class PeakController extends AbstractController
{
public function __construct(
private readonly MessageBusInterface $commandBus,
@@ -31,7 +31,7 @@ public function index(): Response
$apiError = 'There was an error connecting to the API. Please check your credentials and try again. If you continue to experience issues, did you forget to enable/disable the sandbox?';
}
- return $this->render('@SetonoSyliusPeakWMSPlugin/admin/peak_wms/index.html.twig', [
+ return $this->render('@SetonoSyliusPeakPlugin/admin/peak_wms/index.html.twig', [
'apiError' => $apiError,
'webhooksShouldBeRegistered' => $this->webhookRegistrar->outOfDate(),
]);
diff --git a/src/Controller/HandleWebhookControllerAction.php b/src/Controller/HandleWebhookControllerAction.php
index c48b7c7..d31dfce 100644
--- a/src/Controller/HandleWebhookControllerAction.php
+++ b/src/Controller/HandleWebhookControllerAction.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Controller;
+namespace Setono\SyliusPeakPlugin\Controller;
use Setono\PeakWMS\Parser\WebhookParser;
use Setono\PeakWMS\Parser\WebhookParserInterface;
-use Setono\SyliusPeakWMSPlugin\WebhookHandler\WebhookHandlerInterface;
+use Setono\SyliusPeakPlugin\WebhookHandler\WebhookHandlerInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
diff --git a/src/DataMapper/CompositeSalesOrderDataMapper.php b/src/DataMapper/CompositeSalesOrderDataMapper.php
index 5ff94b0..49624c4 100644
--- a/src/DataMapper/CompositeSalesOrderDataMapper.php
+++ b/src/DataMapper/CompositeSalesOrderDataMapper.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\DataMapper;
+namespace Setono\SyliusPeakPlugin\DataMapper;
use Psr\EventDispatcher\EventDispatcherInterface;
use Setono\CompositeCompilerPass\CompositeService;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\Event\SalesOrderMappedEvent;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Event\SalesOrderMappedEvent;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
/**
* @extends CompositeService
diff --git a/src/DataMapper/SalesOrderDataMapper.php b/src/DataMapper/SalesOrderDataMapper.php
index 3c349fb..bde9f22 100644
--- a/src/DataMapper/SalesOrderDataMapper.php
+++ b/src/DataMapper/SalesOrderDataMapper.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\DataMapper;
+namespace Setono\SyliusPeakPlugin\DataMapper;
use Setono\PeakWMS\DataTransferObject\Address;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
use Sylius\Component\Core\Model\PaymentMethodInterface;
use Sylius\Component\Core\Model\ShippingMethodInterface;
use Webmozart\Assert\Assert;
diff --git a/src/DataMapper/SalesOrderDataMapperInterface.php b/src/DataMapper/SalesOrderDataMapperInterface.php
index a9bb78c..a99cf9c 100644
--- a/src/DataMapper/SalesOrderDataMapperInterface.php
+++ b/src/DataMapper/SalesOrderDataMapperInterface.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\DataMapper;
+namespace Setono\SyliusPeakPlugin\DataMapper;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
interface SalesOrderDataMapperInterface
{
diff --git a/src/DataMapper/SalesOrderLinesSalesOrderDataMapper.php b/src/DataMapper/SalesOrderLinesSalesOrderDataMapper.php
index 7f99167..57dc7f3 100644
--- a/src/DataMapper/SalesOrderLinesSalesOrderDataMapper.php
+++ b/src/DataMapper/SalesOrderLinesSalesOrderDataMapper.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\DataMapper;
+namespace Setono\SyliusPeakPlugin\DataMapper;
use Psr\EventDispatcher\EventDispatcherInterface;
use Setono\PeakWMS\DataTransferObject\SalesOrder\OrderLine\SalesOrderLine;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\Event\SalesOrderLineMappedEvent;
-use function Setono\SyliusPeakWMSPlugin\formatAmount;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Event\SalesOrderLineMappedEvent;
+use function Setono\SyliusPeakPlugin\formatAmount;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
use Sylius\Component\Core\Model\OrderItemUnitInterface;
use Webmozart\Assert\Assert;
diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php
index 236c298..81ae37f 100644
--- a/src/DependencyInjection/Configuration.php
+++ b/src/DependencyInjection/Configuration.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\DependencyInjection;
+namespace Setono\SyliusPeakPlugin\DependencyInjection;
-use Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooks;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequest;
+use Setono\SyliusPeakPlugin\Model\RegisteredWebhooks;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequest;
use Sylius\Component\Resource\Factory\Factory;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
diff --git a/src/DependencyInjection/SetonoSyliusPeakWMSExtension.php b/src/DependencyInjection/SetonoSyliusPeakWMSExtension.php
index ebbaff1..dc40b3a 100644
--- a/src/DependencyInjection/SetonoSyliusPeakWMSExtension.php
+++ b/src/DependencyInjection/SetonoSyliusPeakWMSExtension.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\DependencyInjection;
+namespace Setono\SyliusPeakPlugin\DependencyInjection;
-use Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderDataMapperInterface;
-use Setono\SyliusPeakWMSPlugin\WebhookHandler\WebhookHandlerInterface;
-use Setono\SyliusPeakWMSPlugin\Workflow\UploadOrderRequestWorkflow;
+use Setono\SyliusPeakPlugin\DataMapper\SalesOrderDataMapperInterface;
+use Setono\SyliusPeakPlugin\WebhookHandler\WebhookHandlerInterface;
+use Setono\SyliusPeakPlugin\Workflow\UploadOrderRequestWorkflow;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension;
use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
use Symfony\Component\Config\FileLocator;
diff --git a/src/Event/PreQualifiedUploadOrderRequestsQueryBuilderCreatedEvent.php b/src/Event/PreQualifiedUploadOrderRequestsQueryBuilderCreatedEvent.php
index 387ff05..b128692 100644
--- a/src/Event/PreQualifiedUploadOrderRequestsQueryBuilderCreatedEvent.php
+++ b/src/Event/PreQualifiedUploadOrderRequestsQueryBuilderCreatedEvent.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Event;
+namespace Setono\SyliusPeakPlugin\Event;
use Doctrine\ORM\QueryBuilder;
diff --git a/src/Event/SalesOrderLineMappedEvent.php b/src/Event/SalesOrderLineMappedEvent.php
index c35586e..797561c 100644
--- a/src/Event/SalesOrderLineMappedEvent.php
+++ b/src/Event/SalesOrderLineMappedEvent.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Event;
+namespace Setono\SyliusPeakPlugin\Event;
use Setono\PeakWMS\DataTransferObject\SalesOrder\OrderLine\SalesOrderLine;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
use Sylius\Component\Core\Model\OrderItemInterface;
/**
diff --git a/src/Event/SalesOrderMappedEvent.php b/src/Event/SalesOrderMappedEvent.php
index e25a81f..d64703c 100644
--- a/src/Event/SalesOrderMappedEvent.php
+++ b/src/Event/SalesOrderMappedEvent.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Event;
+namespace Setono\SyliusPeakPlugin\Event;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
/**
* This event is dispatched after payment details has been mapped
diff --git a/src/EventSubscriber/AddLinkToPeakSubscriber.php b/src/EventSubscriber/AddLinkToPeakSubscriber.php
index 7e40b2c..deeb3fd 100644
--- a/src/EventSubscriber/AddLinkToPeakSubscriber.php
+++ b/src/EventSubscriber/AddLinkToPeakSubscriber.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\EventSubscriber;
+namespace Setono\SyliusPeakPlugin\EventSubscriber;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
use Sylius\Bundle\AdminBundle\Event\OrderShowMenuBuilderEvent;
use Sylius\Bundle\AdminBundle\Menu\OrderShowMenuBuilder;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
@@ -28,7 +28,7 @@ public function addLink(OrderShowMenuBuilderEvent $event): void
return;
}
- $uploadOrderRequest = $order->getPeakWMSUploadOrderRequest();
+ $uploadOrderRequest = $order->getPeakUploadOrderRequest();
if ($uploadOrderRequest === null) {
return;
}
diff --git a/src/EventSubscriber/AddMenuSubscriber.php b/src/EventSubscriber/AddMenuSubscriber.php
index 72365ac..3b4e1d7 100644
--- a/src/EventSubscriber/AddMenuSubscriber.php
+++ b/src/EventSubscriber/AddMenuSubscriber.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\EventSubscriber;
+namespace Setono\SyliusPeakPlugin\EventSubscriber;
use Knp\Menu\ItemInterface;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
diff --git a/src/EventSubscriber/CreateUploadOrderRequestSubscriber.php b/src/EventSubscriber/CreateUploadOrderRequestSubscriber.php
index 20365f9..91664c4 100644
--- a/src/EventSubscriber/CreateUploadOrderRequestSubscriber.php
+++ b/src/EventSubscriber/CreateUploadOrderRequestSubscriber.php
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\EventSubscriber;
+namespace Setono\SyliusPeakPlugin\EventSubscriber;
use Doctrine\Persistence\ManagerRegistry;
use Setono\Doctrine\ORMTrait;
-use Setono\SyliusPeakWMSPlugin\Factory\UploadOrderRequestFactoryInterface;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Factory\UploadOrderRequestFactoryInterface;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Webmozart\Assert\Assert;
@@ -36,6 +36,6 @@ public function createUploadOrderRequest(ResourceControllerEvent $event): void
$order = $event->getSubject();
Assert::isInstanceOf($order, OrderInterface::class);
- $order->setPeakWMSUploadOrderRequest($this->uploadOrderRequestFactory->createNew());
+ $order->setPeakUploadOrderRequest($this->uploadOrderRequestFactory->createNew());
}
}
diff --git a/src/EventSubscriber/Grid/AddUploadOrderRequestColumnToOrderGridSubscriber.php b/src/EventSubscriber/Grid/AddUploadOrderRequestColumnToOrderGridSubscriber.php
index 1497632..f2d0055 100644
--- a/src/EventSubscriber/Grid/AddUploadOrderRequestColumnToOrderGridSubscriber.php
+++ b/src/EventSubscriber/Grid/AddUploadOrderRequestColumnToOrderGridSubscriber.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\EventSubscriber\Grid;
+namespace Setono\SyliusPeakPlugin\EventSubscriber\Grid;
use Sylius\Component\Grid\Definition\Field;
use Sylius\Component\Grid\Event\GridDefinitionConverterEvent;
@@ -21,9 +21,9 @@ public function add(GridDefinitionConverterEvent $event): void
{
$field = Field::fromNameAndType('peakWMSUploadOrderRequest', 'twig');
$field->setOptions([
- 'template' => '@SetonoSyliusPeakWMSPlugin/admin/order/grid/field/peak_wms_upload_order_request.html.twig',
+ 'template' => '@SetonoSyliusPeakPlugin/admin/order/grid/field/peak_wms_upload_order_request.html.twig',
'vars' => [
- 'labels' => '@SetonoSyliusPeakWMSPlugin/admin/order/grid/field/peak_wms_upload_order_request',
+ 'labels' => '@SetonoSyliusPeakPlugin/admin/order/grid/field/peak_wms_upload_order_request',
],
]);
$field->setLabel('setono_sylius_peak_wms.ui.peak_wms_state');
diff --git a/src/Exception/UnsupportedWebhookException.php b/src/Exception/UnsupportedWebhookException.php
index e42fd74..7704246 100644
--- a/src/Exception/UnsupportedWebhookException.php
+++ b/src/Exception/UnsupportedWebhookException.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Exception;
+namespace Setono\SyliusPeakPlugin\Exception;
final class UnsupportedWebhookException extends \RuntimeException
{
diff --git a/src/Exception/WebhookRegistrationException.php b/src/Exception/WebhookRegistrationException.php
index c96746e..370139a 100644
--- a/src/Exception/WebhookRegistrationException.php
+++ b/src/Exception/WebhookRegistrationException.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Exception;
+namespace Setono\SyliusPeakPlugin\Exception;
final class WebhookRegistrationException extends \RuntimeException
{
diff --git a/src/Factory/RegisteredWebhooksFactory.php b/src/Factory/RegisteredWebhooksFactory.php
index 78ce9f2..b83aa82 100644
--- a/src/Factory/RegisteredWebhooksFactory.php
+++ b/src/Factory/RegisteredWebhooksFactory.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Factory;
+namespace Setono\SyliusPeakPlugin\Factory;
-use Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooksInterface;
+use Setono\SyliusPeakPlugin\Model\RegisteredWebhooksInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
final class RegisteredWebhooksFactory implements RegisteredWebhooksFactoryInterface
diff --git a/src/Factory/RegisteredWebhooksFactoryInterface.php b/src/Factory/RegisteredWebhooksFactoryInterface.php
index 91db812..e5b1fab 100644
--- a/src/Factory/RegisteredWebhooksFactoryInterface.php
+++ b/src/Factory/RegisteredWebhooksFactoryInterface.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Factory;
+namespace Setono\SyliusPeakPlugin\Factory;
use Setono\PeakWMS\DataTransferObject\Webhook\Webhook;
-use Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooksInterface;
+use Setono\SyliusPeakPlugin\Model\RegisteredWebhooksInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
/**
diff --git a/src/Factory/UploadOrderRequestFactory.php b/src/Factory/UploadOrderRequestFactory.php
index dcf37ba..2fa8ae2 100644
--- a/src/Factory/UploadOrderRequestFactory.php
+++ b/src/Factory/UploadOrderRequestFactory.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Factory;
+namespace Setono\SyliusPeakPlugin\Factory;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
final class UploadOrderRequestFactory implements UploadOrderRequestFactoryInterface
diff --git a/src/Factory/UploadOrderRequestFactoryInterface.php b/src/Factory/UploadOrderRequestFactoryInterface.php
index 6e4874f..d21c768 100644
--- a/src/Factory/UploadOrderRequestFactoryInterface.php
+++ b/src/Factory/UploadOrderRequestFactoryInterface.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Factory;
+namespace Setono\SyliusPeakPlugin\Factory;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
/**
diff --git a/src/Message/Command/CommandInterface.php b/src/Message/Command/CommandInterface.php
index 9fbea9c..7d7c758 100644
--- a/src/Message/Command/CommandInterface.php
+++ b/src/Message/Command/CommandInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\Command;
+namespace Setono\SyliusPeakPlugin\Message\Command;
/**
* Use this interface in your Messenger routing for asynchronous commands
diff --git a/src/Message/Command/ProcessUploadOrderRequest.php b/src/Message/Command/ProcessUploadOrderRequest.php
index da02879..636485d 100644
--- a/src/Message/Command/ProcessUploadOrderRequest.php
+++ b/src/Message/Command/ProcessUploadOrderRequest.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\Command;
+namespace Setono\SyliusPeakPlugin\Message\Command;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
/**
* Processes an upload order request
diff --git a/src/Message/Command/RegisterWebhooks.php b/src/Message/Command/RegisterWebhooks.php
index 13a94d1..563e7c2 100644
--- a/src/Message/Command/RegisterWebhooks.php
+++ b/src/Message/Command/RegisterWebhooks.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\Command;
+namespace Setono\SyliusPeakPlugin\Message\Command;
/**
* This command will register webhooks with Peak WMS
diff --git a/src/Message/Command/UpdateInventory.php b/src/Message/Command/UpdateInventory.php
index 9a16ab1..b7e09cc 100644
--- a/src/Message/Command/UpdateInventory.php
+++ b/src/Message/Command/UpdateInventory.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\Command;
+namespace Setono\SyliusPeakPlugin\Message\Command;
use Sylius\Component\Core\Model\ProductVariantInterface;
diff --git a/src/Message/CommandHandler/ProcessUploadOrderRequestHandler.php b/src/Message/CommandHandler/ProcessUploadOrderRequestHandler.php
index 8fb67f0..6b8f90d 100644
--- a/src/Message/CommandHandler/ProcessUploadOrderRequestHandler.php
+++ b/src/Message/CommandHandler/ProcessUploadOrderRequestHandler.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\CommandHandler;
+namespace Setono\SyliusPeakPlugin\Message\CommandHandler;
use Doctrine\Persistence\ManagerRegistry;
use Psr\Http\Message\RequestInterface;
@@ -10,10 +10,10 @@
use Setono\Doctrine\ORMTrait;
use Setono\PeakWMS\Client\ClientInterface;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderDataMapperInterface;
-use Setono\SyliusPeakWMSPlugin\Message\Command\ProcessUploadOrderRequest;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
-use Setono\SyliusPeakWMSPlugin\Workflow\UploadOrderRequestWorkflow;
+use Setono\SyliusPeakPlugin\DataMapper\SalesOrderDataMapperInterface;
+use Setono\SyliusPeakPlugin\Message\Command\ProcessUploadOrderRequest;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Workflow\UploadOrderRequestWorkflow;
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;
use Symfony\Component\Workflow\WorkflowInterface;
diff --git a/src/Message/CommandHandler/RegisterWebhooksHandler.php b/src/Message/CommandHandler/RegisterWebhooksHandler.php
index 693a468..ac8efdf 100644
--- a/src/Message/CommandHandler/RegisterWebhooksHandler.php
+++ b/src/Message/CommandHandler/RegisterWebhooksHandler.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\CommandHandler;
+namespace Setono\SyliusPeakPlugin\Message\CommandHandler;
-use Setono\SyliusPeakWMSPlugin\Message\Command\RegisterWebhooks;
-use Setono\SyliusPeakWMSPlugin\Registrar\WebhookRegistrarInterface;
+use Setono\SyliusPeakPlugin\Message\Command\RegisterWebhooks;
+use Setono\SyliusPeakPlugin\Registrar\WebhookRegistrarInterface;
final class RegisterWebhooksHandler
{
diff --git a/src/Message/CommandHandler/UpdateInventoryHandler.php b/src/Message/CommandHandler/UpdateInventoryHandler.php
index 59e05e4..febca84 100644
--- a/src/Message/CommandHandler/UpdateInventoryHandler.php
+++ b/src/Message/CommandHandler/UpdateInventoryHandler.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Message\CommandHandler;
+namespace Setono\SyliusPeakPlugin\Message\CommandHandler;
use Setono\PeakWMS\Client\ClientInterface;
use Setono\PeakWMS\DataTransferObject\Product\Product;
-use Setono\SyliusPeakWMSPlugin\Message\Command\UpdateInventory;
+use Setono\SyliusPeakPlugin\Message\Command\UpdateInventory;
use Sylius\Component\Core\Model\ProductVariantInterface;
use Sylius\Component\Core\Repository\ProductVariantRepositoryInterface;
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;
diff --git a/src/Model/OrderInterface.php b/src/Model/OrderInterface.php
index 5d8cba4..e9ca371 100644
--- a/src/Model/OrderInterface.php
+++ b/src/Model/OrderInterface.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Model;
+namespace Setono\SyliusPeakPlugin\Model;
use Sylius\Component\Core\Model\OrderInterface as BaseOrderInterface;
interface OrderInterface extends BaseOrderInterface
{
- public function getPeakWMSUploadOrderRequest(): ?UploadOrderRequestInterface;
+ public function getPeakUploadOrderRequest(): ?UploadOrderRequestInterface;
- public function setPeakWMSUploadOrderRequest(?UploadOrderRequestInterface $peakWMSUploadOrderRequest): void;
+ public function setPeakUploadOrderRequest(?UploadOrderRequestInterface $uploadOrderRequest): void;
}
diff --git a/src/Model/OrderTrait.php b/src/Model/OrderTrait.php
index b22d8c4..5368f84 100644
--- a/src/Model/OrderTrait.php
+++ b/src/Model/OrderTrait.php
@@ -2,24 +2,24 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Model;
+namespace Setono\SyliusPeakPlugin\Model;
use Doctrine\ORM\Mapping as ORM;
trait OrderTrait
{
- /** @ORM\OneToOne(mappedBy="order", targetEntity="Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface", cascade={"persist"}, orphanRemoval=true) */
+ /** @ORM\OneToOne(mappedBy="order", targetEntity="Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface", cascade={"persist"}, orphanRemoval=true) */
#[ORM\OneToOne(mappedBy: 'order', targetEntity: UploadOrderRequestInterface::class, cascade: ['persist'], orphanRemoval: true)]
- protected ?UploadOrderRequestInterface $peakWMSUploadOrderRequest = null;
+ protected ?UploadOrderRequestInterface $peakUploadOrderRequest = null;
- public function getPeakWMSUploadOrderRequest(): ?UploadOrderRequestInterface
+ public function getPeakUploadOrderRequest(): ?UploadOrderRequestInterface
{
- return $this->peakWMSUploadOrderRequest;
+ return $this->peakUploadOrderRequest;
}
- public function setPeakWMSUploadOrderRequest(?UploadOrderRequestInterface $peakWMSUploadOrderRequest): void
+ public function setPeakUploadOrderRequest(?UploadOrderRequestInterface $uploadOrderRequest): void
{
- $this->peakWMSUploadOrderRequest = $peakWMSUploadOrderRequest;
- $peakWMSUploadOrderRequest?->setOrder($this);
+ $this->peakUploadOrderRequest = $uploadOrderRequest;
+ $uploadOrderRequest?->setOrder($this);
}
}
diff --git a/src/Model/RegisteredWebhooks.php b/src/Model/RegisteredWebhooks.php
index 08e7043..67a896e 100644
--- a/src/Model/RegisteredWebhooks.php
+++ b/src/Model/RegisteredWebhooks.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Model;
+namespace Setono\SyliusPeakPlugin\Model;
class RegisteredWebhooks implements RegisteredWebhooksInterface
{
diff --git a/src/Model/RegisteredWebhooksInterface.php b/src/Model/RegisteredWebhooksInterface.php
index 93d92e3..659b040 100644
--- a/src/Model/RegisteredWebhooksInterface.php
+++ b/src/Model/RegisteredWebhooksInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Model;
+namespace Setono\SyliusPeakPlugin\Model;
use Sylius\Component\Resource\Model\ResourceInterface;
diff --git a/src/Model/UploadOrderRequest.php b/src/Model/UploadOrderRequest.php
index f51c43e..ca1d47f 100644
--- a/src/Model/UploadOrderRequest.php
+++ b/src/Model/UploadOrderRequest.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Model;
+namespace Setono\SyliusPeakPlugin\Model;
class UploadOrderRequest implements UploadOrderRequestInterface
{
diff --git a/src/Model/UploadOrderRequestInterface.php b/src/Model/UploadOrderRequestInterface.php
index 2177adb..70a3adb 100644
--- a/src/Model/UploadOrderRequestInterface.php
+++ b/src/Model/UploadOrderRequestInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Model;
+namespace Setono\SyliusPeakPlugin\Model;
use Sylius\Component\Resource\Model\ResourceInterface;
use Sylius\Component\Resource\Model\VersionedInterface;
diff --git a/src/Processor/UploadOrderRequestProcessor.php b/src/Processor/UploadOrderRequestProcessor.php
index 5ce7ad1..6f68899 100644
--- a/src/Processor/UploadOrderRequestProcessor.php
+++ b/src/Processor/UploadOrderRequestProcessor.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Processor;
+namespace Setono\SyliusPeakPlugin\Processor;
use Doctrine\ORM\OptimisticLockException;
use Doctrine\Persistence\ManagerRegistry;
use Setono\Doctrine\ORMTrait;
-use Setono\SyliusPeakWMSPlugin\Message\Command\ProcessUploadOrderRequest;
-use Setono\SyliusPeakWMSPlugin\Provider\PreQualifiedUploadOrderRequestsProviderInterface;
-use Setono\SyliusPeakWMSPlugin\Workflow\UploadOrderRequestWorkflow;
+use Setono\SyliusPeakPlugin\Message\Command\ProcessUploadOrderRequest;
+use Setono\SyliusPeakPlugin\Provider\PreQualifiedUploadOrderRequestsProviderInterface;
+use Setono\SyliusPeakPlugin\Workflow\UploadOrderRequestWorkflow;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Workflow\Exception\LogicException;
use Symfony\Component\Workflow\WorkflowInterface;
diff --git a/src/Processor/UploadOrderRequestProcessorInterface.php b/src/Processor/UploadOrderRequestProcessorInterface.php
index 5381348..2c4e874 100644
--- a/src/Processor/UploadOrderRequestProcessorInterface.php
+++ b/src/Processor/UploadOrderRequestProcessorInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Processor;
+namespace Setono\SyliusPeakPlugin\Processor;
interface UploadOrderRequestProcessorInterface
{
diff --git a/src/Provider/PreQualifiedUploadOrderRequestsProvider.php b/src/Provider/PreQualifiedUploadOrderRequestsProvider.php
index c8eba6b..d810bc2 100644
--- a/src/Provider/PreQualifiedUploadOrderRequestsProvider.php
+++ b/src/Provider/PreQualifiedUploadOrderRequestsProvider.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Provider;
+namespace Setono\SyliusPeakPlugin\Provider;
use Doctrine\Persistence\ManagerRegistry;
use DoctrineBatchUtils\BatchProcessing\SelectBatchIteratorAggregate;
use Psr\EventDispatcher\EventDispatcherInterface;
use Setono\Doctrine\ORMTrait;
-use Setono\SyliusPeakWMSPlugin\Event\PreQualifiedUploadOrderRequestsQueryBuilderCreatedEvent;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Event\PreQualifiedUploadOrderRequestsQueryBuilderCreatedEvent;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
use Sylius\Component\Core\OrderCheckoutStates;
use Sylius\Component\Core\OrderPaymentStates;
diff --git a/src/Provider/PreQualifiedUploadOrderRequestsProviderInterface.php b/src/Provider/PreQualifiedUploadOrderRequestsProviderInterface.php
index fbecf42..791fac7 100644
--- a/src/Provider/PreQualifiedUploadOrderRequestsProviderInterface.php
+++ b/src/Provider/PreQualifiedUploadOrderRequestsProviderInterface.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Provider;
+namespace Setono\SyliusPeakPlugin\Provider;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
interface PreQualifiedUploadOrderRequestsProviderInterface
{
diff --git a/src/Provider/ProductVariantProvider.php b/src/Provider/ProductVariantProvider.php
index a40b1d9..996f0c8 100644
--- a/src/Provider/ProductVariantProvider.php
+++ b/src/Provider/ProductVariantProvider.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Provider;
+namespace Setono\SyliusPeakPlugin\Provider;
use Doctrine\Persistence\ManagerRegistry;
use Setono\Doctrine\ORMTrait;
diff --git a/src/Provider/ProductVariantProviderInterface.php b/src/Provider/ProductVariantProviderInterface.php
index 7bfd3e7..d79cd71 100644
--- a/src/Provider/ProductVariantProviderInterface.php
+++ b/src/Provider/ProductVariantProviderInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Provider;
+namespace Setono\SyliusPeakPlugin\Provider;
use Setono\PeakWMS\DataTransferObject\Webhook\WebhookDataStockAdjust;
use Sylius\Component\Core\Model\ProductVariantInterface;
diff --git a/src/Registrar/WebhookRegistrar.php b/src/Registrar/WebhookRegistrar.php
index 513c6b5..7468b6b 100644
--- a/src/Registrar/WebhookRegistrar.php
+++ b/src/Registrar/WebhookRegistrar.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Registrar;
+namespace Setono\SyliusPeakPlugin\Registrar;
use Setono\PeakWMS\Client\ClientInterface;
use Setono\PeakWMS\DataTransferObject\Webhook\Name;
use Setono\PeakWMS\DataTransferObject\Webhook\Webhook;
-use Setono\SyliusPeakWMSPlugin\Exception\WebhookRegistrationException;
-use Setono\SyliusPeakWMSPlugin\Factory\RegisteredWebhooksFactoryInterface;
-use Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooksInterface;
+use Setono\SyliusPeakPlugin\Exception\WebhookRegistrationException;
+use Setono\SyliusPeakPlugin\Factory\RegisteredWebhooksFactoryInterface;
+use Setono\SyliusPeakPlugin\Model\RegisteredWebhooksInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
diff --git a/src/Registrar/WebhookRegistrarInterface.php b/src/Registrar/WebhookRegistrarInterface.php
index 9a680e2..712630e 100644
--- a/src/Registrar/WebhookRegistrarInterface.php
+++ b/src/Registrar/WebhookRegistrarInterface.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Registrar;
+namespace Setono\SyliusPeakPlugin\Registrar;
-use Setono\SyliusPeakWMSPlugin\Exception\WebhookRegistrationException;
+use Setono\SyliusPeakPlugin\Exception\WebhookRegistrationException;
interface WebhookRegistrarInterface
{
diff --git a/src/Resources/config/doctrine/model/RegisteredWebhooks.orm.xml b/src/Resources/config/doctrine/model/RegisteredWebhooks.orm.xml
index 07a6186..9b74ab4 100644
--- a/src/Resources/config/doctrine/model/RegisteredWebhooks.orm.xml
+++ b/src/Resources/config/doctrine/model/RegisteredWebhooks.orm.xml
@@ -4,7 +4,7 @@
xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
-
diff --git a/src/Resources/config/doctrine/model/UploadOrderRequest.orm.xml b/src/Resources/config/doctrine/model/UploadOrderRequest.orm.xml
index db0942a..9ec4fc1 100644
--- a/src/Resources/config/doctrine/model/UploadOrderRequest.orm.xml
+++ b/src/Resources/config/doctrine/model/UploadOrderRequest.orm.xml
@@ -4,7 +4,7 @@
xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
-
@@ -17,7 +17,7 @@
-
+
diff --git a/src/Resources/config/routes.yaml b/src/Resources/config/routes.yaml
index 213bb1c..dd746c3 100644
--- a/src/Resources/config/routes.yaml
+++ b/src/Resources/config/routes.yaml
@@ -1,6 +1,6 @@
setono_sylius_peak_wms_global:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes/global.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes/global.yaml"
setono_sylius_peak_wms_admin:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes/admin.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes/admin.yaml"
prefix: /admin
diff --git a/src/Resources/config/routes_no_locale.yaml b/src/Resources/config/routes_no_locale.yaml
index 633fc3a..f4597ec 100644
--- a/src/Resources/config/routes_no_locale.yaml
+++ b/src/Resources/config/routes_no_locale.yaml
@@ -3,8 +3,8 @@
# To accommodate this in your plugin, provide a routes file for non localized stores and tell this in the README.md
setono_sylius_peak_wms_global:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes/global.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes/global.yaml"
setono_sylius_peak_wms_admin:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes/admin.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes/admin.yaml"
prefix: /admin
diff --git a/src/Resources/config/services/command.xml b/src/Resources/config/services/command.xml
index 9baeb5d..bfdf54a 100644
--- a/src/Resources/config/services/command.xml
+++ b/src/Resources/config/services/command.xml
@@ -3,14 +3,14 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\Command\ProcessCommand">
+ class="Setono\SyliusPeakPlugin\Command\RegisterWebhooksCommand">
diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml
index e44a89d..4315c78 100644
--- a/src/Resources/config/services/controller.xml
+++ b/src/Resources/config/services/controller.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\Controller\Admin\PeakController" public="true">
@@ -16,7 +16,7 @@
+ class="Setono\SyliusPeakPlugin\Controller\HandleWebhookControllerAction" public="true">
diff --git a/src/Resources/config/services/data_mapper.xml b/src/Resources/config/services/data_mapper.xml
index f8d10e6..f6e18c5 100644
--- a/src/Resources/config/services/data_mapper.xml
+++ b/src/Resources/config/services/data_mapper.xml
@@ -3,17 +3,17 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\DataMapper\CompositeSalesOrderDataMapper">
+ class="Setono\SyliusPeakPlugin\DataMapper\SalesOrderDataMapper">
+ class="Setono\SyliusPeakPlugin\DataMapper\SalesOrderLinesSalesOrderDataMapper">
diff --git a/src/Resources/config/services/event_subscriber.xml b/src/Resources/config/services/event_subscriber.xml
index 05eb077..9c1da34 100644
--- a/src/Resources/config/services/event_subscriber.xml
+++ b/src/Resources/config/services/event_subscriber.xml
@@ -3,24 +3,24 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\EventSubscriber\Grid\AddUploadOrderRequestColumnToOrderGridSubscriber">
+ class="Setono\SyliusPeakPlugin\EventSubscriber\AddLinkToPeakSubscriber">
%kernel.debug%
+ class="Setono\SyliusPeakPlugin\EventSubscriber\CreateUploadOrderRequestSubscriber">
diff --git a/src/Resources/config/services/factory.xml b/src/Resources/config/services/factory.xml
index 6c9916f..1d66c2f 100644
--- a/src/Resources/config/services/factory.xml
+++ b/src/Resources/config/services/factory.xml
@@ -3,13 +3,13 @@
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/message.xml b/src/Resources/config/services/message.xml
index 1bd19ce..a4f6822 100644
--- a/src/Resources/config/services/message.xml
+++ b/src/Resources/config/services/message.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\Message\CommandHandler\ProcessUploadOrderRequestHandler">
@@ -14,7 +14,7 @@
+ class="Setono\SyliusPeakPlugin\Message\CommandHandler\RegisterWebhooksHandler">
diff --git a/src/Resources/config/services/processor.xml b/src/Resources/config/services/processor.xml
index 3c69152..dd72620 100644
--- a/src/Resources/config/services/processor.xml
+++ b/src/Resources/config/services/processor.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\Processor\UploadOrderRequestProcessor">
diff --git a/src/Resources/config/services/provider.xml b/src/Resources/config/services/provider.xml
index 695d460..aec589c 100644
--- a/src/Resources/config/services/provider.xml
+++ b/src/Resources/config/services/provider.xml
@@ -3,14 +3,14 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\Provider\PreQualifiedUploadOrderRequestsProvider">
%setono_sylius_peak_wms.factory.upload_order_request.class%
+ class="Setono\SyliusPeakPlugin\Provider\ProductVariantProvider">
%sylius.model.product_variant.class%
diff --git a/src/Resources/config/services/registrar.xml b/src/Resources/config/services/registrar.xml
index 87fdb98..5c23121 100644
--- a/src/Resources/config/services/registrar.xml
+++ b/src/Resources/config/services/registrar.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\Registrar\WebhookRegistrar">
diff --git a/src/Resources/config/services/webhook_handler.xml b/src/Resources/config/services/webhook_handler.xml
index 5a8399e..0fa93b8 100644
--- a/src/Resources/config/services/webhook_handler.xml
+++ b/src/Resources/config/services/webhook_handler.xml
@@ -3,10 +3,10 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
+ class="Setono\SyliusPeakPlugin\WebhookHandler\CompositeWebhookHandler"/>
+ class="Setono\SyliusPeakPlugin\WebhookHandler\OrderPackedWebhookHandler">
@@ -14,7 +14,7 @@
+ class="Setono\SyliusPeakPlugin\WebhookHandler\StockAdjustmentWebhookHandler">
diff --git a/src/Resources/functions.php b/src/Resources/functions.php
index 9db5368..71bab4f 100644
--- a/src/Resources/functions.php
+++ b/src/Resources/functions.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin;
+namespace Setono\SyliusPeakPlugin;
/** @psalm-suppress UndefinedClass,MixedArgument */
if (!\function_exists(formatAmount::class)) {
diff --git a/src/Resources/views/admin/order/grid/field/peak_wms_upload_order_request.html.twig b/src/Resources/views/admin/order/grid/field/peak_wms_upload_order_request.html.twig
index 8552445..6128e2d 100644
--- a/src/Resources/views/admin/order/grid/field/peak_wms_upload_order_request.html.twig
+++ b/src/Resources/views/admin/order/grid/field/peak_wms_upload_order_request.html.twig
@@ -1,4 +1,4 @@
-{# @var data \Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface|null #}
+{# @var data \Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface|null #}
{% if data is not null %}
{% set state = data.state %}
{% set value = 'setono_sylius_peak_wms.ui.' ~ state %}
diff --git a/src/SetonoSyliusPeakWMSPlugin.php b/src/SetonoSyliusPeakPlugin.php
similarity index 90%
rename from src/SetonoSyliusPeakWMSPlugin.php
rename to src/SetonoSyliusPeakPlugin.php
index 2a8c4d9..88c8509 100644
--- a/src/SetonoSyliusPeakWMSPlugin.php
+++ b/src/SetonoSyliusPeakPlugin.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin;
+namespace Setono\SyliusPeakPlugin;
use Setono\CompositeCompilerPass\CompositeCompilerPass;
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
@@ -11,7 +11,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
/** @psalm-suppress DeprecatedInterface */
-final class SetonoSyliusPeakWMSPlugin extends AbstractResourceBundle
+final class SetonoSyliusPeakPlugin extends AbstractResourceBundle
{
use SyliusPluginTrait;
diff --git a/src/WebhookHandler/CompositeWebhookHandler.php b/src/WebhookHandler/CompositeWebhookHandler.php
index 2b2dbd6..2b9264b 100644
--- a/src/WebhookHandler/CompositeWebhookHandler.php
+++ b/src/WebhookHandler/CompositeWebhookHandler.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\WebhookHandler;
+namespace Setono\SyliusPeakPlugin\WebhookHandler;
use Setono\CompositeCompilerPass\CompositeService;
-use Setono\SyliusPeakWMSPlugin\Exception\UnsupportedWebhookException;
+use Setono\SyliusPeakPlugin\Exception\UnsupportedWebhookException;
/**
* @extends CompositeService
diff --git a/src/WebhookHandler/OrderPackedWebhookHandler.php b/src/WebhookHandler/OrderPackedWebhookHandler.php
index ffd3d9f..db4502b 100644
--- a/src/WebhookHandler/OrderPackedWebhookHandler.php
+++ b/src/WebhookHandler/OrderPackedWebhookHandler.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\WebhookHandler;
+namespace Setono\SyliusPeakPlugin\WebhookHandler;
use Setono\PeakWMS\DataTransferObject\Webhook\WebhookDataPickOrderLine;
use Setono\PeakWMS\DataTransferObject\Webhook\WebhookDataPickOrderPacked;
use Setono\PeakWMS\DataTransferObject\Webhook\WebhookDataStockAdjust;
-use Setono\SyliusPeakWMSPlugin\Exception\UnsupportedWebhookException;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface;
+use Setono\SyliusPeakPlugin\Exception\UnsupportedWebhookException;
+use Setono\SyliusPeakPlugin\Model\OrderInterface;
use SM\Factory\FactoryInterface;
use Sylius\Component\Core\Model\OrderItemInterface;
use Sylius\Component\Core\OrderPaymentTransitions;
diff --git a/src/WebhookHandler/StockAdjustmentWebhookHandler.php b/src/WebhookHandler/StockAdjustmentWebhookHandler.php
index 0cfb03a..094c650 100644
--- a/src/WebhookHandler/StockAdjustmentWebhookHandler.php
+++ b/src/WebhookHandler/StockAdjustmentWebhookHandler.php
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\WebhookHandler;
+namespace Setono\SyliusPeakPlugin\WebhookHandler;
use Setono\PeakWMS\DataTransferObject\Webhook\WebhookDataStockAdjust;
-use Setono\SyliusPeakWMSPlugin\Exception\UnsupportedWebhookException;
-use Setono\SyliusPeakWMSPlugin\Message\Command\UpdateInventory;
-use Setono\SyliusPeakWMSPlugin\Provider\ProductVariantProviderInterface;
+use Setono\SyliusPeakPlugin\Exception\UnsupportedWebhookException;
+use Setono\SyliusPeakPlugin\Message\Command\UpdateInventory;
+use Setono\SyliusPeakPlugin\Provider\ProductVariantProviderInterface;
use Symfony\Component\Messenger\MessageBusInterface;
final class StockAdjustmentWebhookHandler implements WebhookHandlerInterface
diff --git a/src/WebhookHandler/WebhookHandlerInterface.php b/src/WebhookHandler/WebhookHandlerInterface.php
index d828273..50f9c0a 100644
--- a/src/WebhookHandler/WebhookHandlerInterface.php
+++ b/src/WebhookHandler/WebhookHandlerInterface.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\WebhookHandler;
+namespace Setono\SyliusPeakPlugin\WebhookHandler;
-use Setono\SyliusPeakWMSPlugin\Exception\UnsupportedWebhookException;
+use Setono\SyliusPeakPlugin\Exception\UnsupportedWebhookException;
interface WebhookHandlerInterface
{
diff --git a/src/Workflow/UploadOrderRequestWorkflow.php b/src/Workflow/UploadOrderRequestWorkflow.php
index 83ae422..2037b9b 100644
--- a/src/Workflow/UploadOrderRequestWorkflow.php
+++ b/src/Workflow/UploadOrderRequestWorkflow.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace Setono\SyliusPeakWMSPlugin\Workflow;
+namespace Setono\SyliusPeakPlugin\Workflow;
-use Setono\SyliusPeakWMSPlugin\Model\UploadOrderRequestInterface;
+use Setono\SyliusPeakPlugin\Model\UploadOrderRequestInterface;
use Symfony\Component\Workflow\Transition;
final class UploadOrderRequestWorkflow
diff --git a/tests/Application/.env.test b/tests/Application/.env.test
index 775329e..a8eea69 100644
--- a/tests/Application/.env.test
+++ b/tests/Application/.env.test
@@ -1,3 +1,3 @@
APP_SECRET='ch4mb3r0f5ecr3ts'
-KERNEL_CLASS='Tests\Setono\SyliusPeakWMSPlugin\Application\Kernel'
+KERNEL_CLASS='Tests\Setono\SyliusPeakPlugin\Application\Kernel'
diff --git a/tests/Application/Kernel.php b/tests/Application/Kernel.php
index f572253..c95275c 100644
--- a/tests/Application/Kernel.php
+++ b/tests/Application/Kernel.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace Tests\Setono\SyliusPeakWMSPlugin\Application;
+namespace Tests\Setono\SyliusPeakPlugin\Application;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
diff --git a/tests/Application/Model/Order.php b/tests/Application/Model/Order.php
index 88a016c..7858c71 100644
--- a/tests/Application/Model/Order.php
+++ b/tests/Application/Model/Order.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace Tests\Setono\SyliusPeakWMSPlugin\Application\Model;
+namespace Tests\Setono\SyliusPeakPlugin\Application\Model;
use Doctrine\ORM\Mapping as ORM;
-use Setono\SyliusPeakWMSPlugin\Model\OrderInterface as PeakWMSOrderInterface;
-use Setono\SyliusPeakWMSPlugin\Model\OrderTrait as PeakWMSOrderTrait;
+use Setono\SyliusPeakPlugin\Model\OrderInterface as PeakWMSOrderInterface;
+use Setono\SyliusPeakPlugin\Model\OrderTrait as PeakWMSOrderTrait;
use Sylius\Component\Core\Model\Order as BaseOrder;
/**
diff --git a/tests/Application/bin/console b/tests/Application/bin/console
index f1b6dea..cebce66 100755
--- a/tests/Application/bin/console
+++ b/tests/Application/bin/console
@@ -1,7 +1,7 @@
#!/usr/bin/env php
['all' => true],
Sylius\Bundle\AdminBundle\SyliusAdminBundle::class => ['all' => true],
Sylius\Bundle\ShopBundle\SyliusShopBundle::class => ['all' => true],
- Setono\SyliusPeakWMSPlugin\SetonoSyliusPeakWMSPlugin::class => ['all' => true],
+ Setono\SyliusPeakPlugin\SetonoSyliusPeakPlugin::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml
index fb9f85e..bb4e34c 100644
--- a/tests/Application/config/packages/_sylius.yaml
+++ b/tests/Application/config/packages/_sylius.yaml
@@ -18,4 +18,4 @@ sylius_order:
resources:
order:
classes:
- model: Tests\Setono\SyliusPeakWMSPlugin\Application\Model\Order
+ model: Tests\Setono\SyliusPeakPlugin\Application\Model\Order
diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml
index 47c0bf5..bfb2100 100644
--- a/tests/Application/config/packages/doctrine.yaml
+++ b/tests/Application/config/packages/doctrine.yaml
@@ -20,5 +20,5 @@ doctrine:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/Model'
- prefix: 'Tests\Setono\SyliusPeakWMSPlugin\Application\Model'
+ prefix: 'Tests\Setono\SyliusPeakPlugin\Application\Model'
alias: App
diff --git a/tests/Application/config/routes/setono_sylius_peak_wms.yaml b/tests/Application/config/routes/setono_sylius_peak_wms.yaml
index 73d12d2..d2b6681 100644
--- a/tests/Application/config/routes/setono_sylius_peak_wms.yaml
+++ b/tests/Application/config/routes/setono_sylius_peak_wms.yaml
@@ -1,2 +1,2 @@
setono_sylius_peak_wms:
- resource: "@SetonoSyliusPeakWMSPlugin/Resources/config/routes.yaml"
+ resource: "@SetonoSyliusPeakPlugin/Resources/config/routes.yaml"
diff --git a/tests/Application/public/index.php b/tests/Application/public/index.php
index 5173917..41c9c7a 100644
--- a/tests/Application/public/index.php
+++ b/tests/Application/public/index.php
@@ -4,7 +4,7 @@
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;
-use Tests\Setono\SyliusPeakWMSPlugin\Application\Kernel;
+use Tests\Setono\SyliusPeakPlugin\Application\Kernel;
require dirname(__DIR__) . '/config/bootstrap.php';
diff --git a/tests/DataMapper/SalesOrderLinesSalesOrderDataMapperTest.php b/tests/DataMapper/SalesOrderLinesSalesOrderDataMapperTest.php
index e352490..ddca43c 100644
--- a/tests/DataMapper/SalesOrderLinesSalesOrderDataMapperTest.php
+++ b/tests/DataMapper/SalesOrderLinesSalesOrderDataMapperTest.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace Tests\Setono\SyliusPeakWMSPlugin\DataMapper;
+namespace Tests\Setono\SyliusPeakPlugin\DataMapper;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Psr\EventDispatcher\EventDispatcherInterface;
use Setono\PeakWMS\DataTransferObject\SalesOrder\SalesOrder;
-use Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderLinesSalesOrderDataMapper;
+use Setono\SyliusPeakPlugin\DataMapper\SalesOrderLinesSalesOrderDataMapper;
use Sylius\Component\Core\Model\Adjustment;
use Sylius\Component\Core\Model\AdjustmentInterface;
use Sylius\Component\Core\Model\OrderItem;
@@ -17,7 +17,7 @@
use Sylius\Component\Core\Model\PaymentMethod;
use Sylius\Component\Core\Model\Product;
use Sylius\Component\Core\Model\ProductVariant;
-use Tests\Setono\SyliusPeakWMSPlugin\Application\Model\Order;
+use Tests\Setono\SyliusPeakPlugin\Application\Model\Order;
final class SalesOrderLinesSalesOrderDataMapperTest extends TestCase
{
diff --git a/tests/DependencyInjection/SetonoSyliusPeakWMSExtensionTest.php b/tests/DependencyInjection/SetonoSyliusPeakWMSExtensionTest.php
index 619e079..d32b54e 100644
--- a/tests/DependencyInjection/SetonoSyliusPeakWMSExtensionTest.php
+++ b/tests/DependencyInjection/SetonoSyliusPeakWMSExtensionTest.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace Tests\Setono\SyliusPeakWMSPlugin\DependencyInjection;
+namespace Tests\Setono\SyliusPeakPlugin\DependencyInjection;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
-use Setono\SyliusPeakWMSPlugin\DependencyInjection\SetonoSyliusPeakWMSExtension;
+use Setono\SyliusPeakPlugin\DependencyInjection\SetonoSyliusPeakWMSExtension;
/**
* See examples of tests and configuration options here: https://github.com/SymfonyTest/SymfonyDependencyInjectionTest