Controller: add loadForm helper method

This commit is contained in:
Thomas Gelf 2015-10-06 22:35:44 +02:00
parent bf5b3424be
commit 960446a16e

View file

@ -11,6 +11,7 @@ use Icinga\Module\Businessprocess\Storage\LegacyStorage;
use Icinga\Module\Monitoring\Backend;
use Icinga\Web\Controller as ModuleController;
use Icinga\Web\Notification;
use Icinga\Module\Director\Web\Form\FormLoader;
use Icinga\Web\Url;
use Icinga\Web\Widget;
@ -119,6 +120,11 @@ class Controller extends ModuleController
return $bp;
}
public function loadForm($name)
{
return FormLoader::load($name, $this->Module());
}
protected function storage()
{
if ($this->storage === null) {