set good module delivery id in session

This commit is contained in:
Manuel Raynaud
2013-09-06 16:12:57 +02:00
parent 1686d6d87c
commit 2dee65727d
9 changed files with 218 additions and 1 deletions

View File

@@ -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();