diff --git a/core.php b/core.php
index <HASH>..<HASH> 100644
--- a/core.php
+++ b/core.php
@@ -65,6 +65,11 @@ class Core {
 		$this->modules->addModule($module, $options);
 	}
 
+	public function setModules(ModuleContainer $container)
+	{
+		$this->modules = $container;
+	}
+
     /**
      * Changes the URL prefix to work from.
      * @param string $prefix is the URL prefix to use, for instance "/glue".
Added way to set all modules at once.