Skip to content

Commit

Permalink
Merge pull request #26 from NicolasBarbey/fix/address_update
Browse files Browse the repository at this point in the history
Fix updateDeliveryAddressListener
  • Loading branch information
zawaze authored Oct 10, 2023
2 parents e9dc798 + 40ff37a commit a3856b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.0.2</version>
<version>2.0.3</version>
<authors>
<author>
<name>Gilles Bourgeat</name>
Expand Down
10 changes: 8 additions & 2 deletions EventListeners/UpdateDeliveryAddressListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
use ColissimoPickupPoint\Model\OrderAddressColissimoPickupPointQuery;
use Propel\Runtime\Exception\PropelException;
use SoapFault;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Filesystem\Filesystem;
Expand All @@ -33,8 +35,12 @@
class UpdateDeliveryAddressListener extends BaseAdminController implements EventSubscriberInterface
{
public function __construct(
protected EventDispatcherInterface $dispatcher
) {}
protected EventDispatcherInterface $dispatcher,
ContainerInterface $container
)
{
$this->container = $container;
}

/**
* @throws PropelException
Expand Down

0 comments on commit a3856b3

Please sign in to comment.