Skip to content

Commit

Permalink
Fix Proxy implementation (#98)
Browse files Browse the repository at this point in the history
Co-authored-by: Maksymilian Strzyżewski <[email protected]>
  • Loading branch information
mstrzyzewski and Maksymilian Strzyżewski authored Jun 22, 2021
1 parent c1e097d commit 41bc536
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Console/Command/ImportOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,7 +21,7 @@ class ImportOrder extends Command
{
const NAME = 'checkoutFormId';

/** @var Proxy */
/** @var Processor */
protected $processor;

/** @var CheckoutFormRepositoryInterface */
Expand All @@ -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
) {
Expand Down
6 changes: 6 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,10 @@
</arguments>
</virtualType>

<type name="Macopedia\Allegro\Console\Command\ImportOrder">
<arguments>
<argument name="processor" xsi:type="object">Macopedia\Allegro\Model\OrderImporter\Processor\Proxy</argument>
</arguments>
</type>

</config>

0 comments on commit 41bc536

Please sign in to comment.