set good module delivery id in session
This commit is contained in:
@@ -39,6 +39,19 @@ abstract class BaseModule extends ContainerAware
|
||||
|
||||
}
|
||||
|
||||
public function hasContainer()
|
||||
{
|
||||
return null === $this->container;
|
||||
}
|
||||
|
||||
public function getContainer()
|
||||
{
|
||||
if($this->hasContainer() === false) {
|
||||
throw new \RuntimeException("Sorry, container his not available in this context");
|
||||
}
|
||||
return $this->container;
|
||||
}
|
||||
|
||||
abstract public function install();
|
||||
abstract public function destroy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user