create listener for colissimo module
This commit is contained in:
@@ -23,9 +23,11 @@
|
||||
|
||||
namespace Colissimo;
|
||||
|
||||
use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Thelia\Exception\OrderException;
|
||||
use Thelia\Install\Database;
|
||||
use Thelia\Model\Country;
|
||||
use Thelia\Module\BaseModule;
|
||||
use Thelia\Module\DeliveryModuleInterface;
|
||||
@@ -107,6 +109,13 @@ class Colissimo extends BaseModule implements DeliveryModuleInterface
|
||||
return $this->dispatcher;
|
||||
}
|
||||
|
||||
public function postActivation(ConnectionInterface $con = null)
|
||||
{
|
||||
$database = new Database($con->getWrappedConnection());
|
||||
|
||||
$database->insertSql(null, array(__DIR__ . '/Config/thelia.sql'));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* calculate and return delivery price
|
||||
|
||||
Reference in New Issue
Block a user