Skip to content

Commit 41bc536

Browse files
mstrzyzewskiMaksymilian Strzyżewski
andauthored
Fix Proxy implementation (#98)
Co-authored-by: Maksymilian Strzyżewski <m.strzyzewski@macopedia.pl>
1 parent c1e097d commit 41bc536

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Console/Command/ImportOrder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Symfony\Component\Console\Input\InputInterface;
1313
use Symfony\Component\Console\Input\InputOption;
1414
use Symfony\Component\Console\Output\OutputInterface;
15-
use Macopedia\Allegro\Model\OrderImporter\Processor\Proxy;
15+
use Macopedia\Allegro\Model\OrderImporter\Processor;
1616

1717
/**
1818
* ImportOrder command class
@@ -21,7 +21,7 @@ class ImportOrder extends Command
2121
{
2222
const NAME = 'checkoutFormId';
2323

24-
/** @var Proxy */
24+
/** @var Processor */
2525
protected $processor;
2626

2727
/** @var CheckoutFormRepositoryInterface */
@@ -32,12 +32,12 @@ class ImportOrder extends Command
3232

3333
/**
3434
* ImportOrder constructor.
35-
* @param Proxy $processor
35+
* @param Processor $processor
3636
* @param CheckoutFormRepositoryInterface $checkoutFormRepository
3737
* @param State $state
3838
*/
3939
public function __construct(
40-
Proxy $processor,
40+
Processor $processor,
4141
CheckoutFormRepositoryInterface $checkoutFormRepository,
4242
State $state
4343
) {

etc/di.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,10 @@
139139
</arguments>
140140
</virtualType>
141141

142+
<type name="Macopedia\Allegro\Console\Command\ImportOrder">
143+
<arguments>
144+
<argument name="processor" xsi:type="object">Macopedia\Allegro\Model\OrderImporter\Processor\Proxy</argument>
145+
</arguments>
146+
</type>
147+
142148
</config>

0 commit comments

Comments
 (0)