Module: add getNamespace() method
This commit is contained in:
parent
997c5a0a13
commit
b7189382fb
|
@ -590,6 +590,16 @@ class Module
|
|||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module namespace
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNamespace()
|
||||
{
|
||||
return 'Icinga\\Module\\' . ucfirst($this->getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module version
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue