From 41bc536c8622083bf8a8f01774f18517ef2c6fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maksymilian=20Strzy=C5=BCewski?= <55131954+mstrzyzewski@users.noreply.github.com> Date: Tue, 22 Jun 2021 10:36:45 +0200 Subject: [PATCH] Fix Proxy implementation (#98) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maksymilian Strzyżewski --- Console/Command/ImportOrder.php | 8 ++++---- etc/di.xml | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Console/Command/ImportOrder.php b/Console/Command/ImportOrder.php index 3ea6fd1..2c161ad 100644 --- a/Console/Command/ImportOrder.php +++ b/Console/Command/ImportOrder.php @@ -12,7 +12,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use Macopedia\Allegro\Model\OrderImporter\Processor\Proxy; +use Macopedia\Allegro\Model\OrderImporter\Processor; /** * ImportOrder command class @@ -21,7 +21,7 @@ class ImportOrder extends Command { const NAME = 'checkoutFormId'; - /** @var Proxy */ + /** @var Processor */ protected $processor; /** @var CheckoutFormRepositoryInterface */ @@ -32,12 +32,12 @@ class ImportOrder extends Command /** * ImportOrder constructor. - * @param Proxy $processor + * @param Processor $processor * @param CheckoutFormRepositoryInterface $checkoutFormRepository * @param State $state */ public function __construct( - Proxy $processor, + Processor $processor, CheckoutFormRepositoryInterface $checkoutFormRepository, State $state ) { diff --git a/etc/di.xml b/etc/di.xml index 8d28867..a2c26b6 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -139,4 +139,10 @@ + + + Macopedia\Allegro\Model\OrderImporter\Processor\Proxy + + +