diff --git a/config.xml b/config.xml index 47cf399ec..196d2ff21 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ ps_mbo - + diff --git a/ps_mbo.php b/ps_mbo.php index 4160ee58c..868cccedb 100644 --- a/ps_mbo.php +++ b/ps_mbo.php @@ -159,7 +159,7 @@ class ps_mbo extends Module public function __construct() { $this->name = 'ps_mbo'; - $this->version = '2.3.1'; + $this->version = '2.3.2'; $this->author = 'PrestaShop'; $this->tab = 'administration'; $this->module_key = '6cad5414354fbef755c7df4ef1ab74eb'; @@ -831,6 +831,10 @@ public function get($serviceName) $this->container = SymfonyContainer::getInstance(); } + if (null === $this->container) { + throw new Exception('Cannot get a valid Sf Container'); + } + return $this->container->get($serviceName); }