mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
bootstrapping: add a dispatchModule() shortcut
This allows to easily jump into a specific modules CLI controllers. refs #6411
This commit is contained in:
parent
4202e34d13
commit
8df26bb5f5
@ -124,6 +124,13 @@ class Cli extends ApplicationBootstrap
|
|||||||
return $this->params;
|
return $this->params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function dispatchModule($name, $basedir = null)
|
||||||
|
{
|
||||||
|
$this->getModuleManager()->loadModule($name, $basedir);
|
||||||
|
$this->cliLoader()->setModuleName($name);
|
||||||
|
$this->dispatch();
|
||||||
|
}
|
||||||
|
|
||||||
public function dispatch()
|
public function dispatch()
|
||||||
{
|
{
|
||||||
Benchmark::measure('Dispatching CLI command');
|
Benchmark::measure('Dispatching CLI command');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user