Move configuration and preference handling to Form base class
Moved setConfiguration, setUserPreferences and getUserPreferences to our Form base class due to some redundancies. refs #4581
This commit is contained in:
parent
86d721c317
commit
14b56151aa
|
@ -156,7 +156,10 @@ class LoggingForm extends Form
|
|||
'label' => 'Debug Log Path',
|
||||
'required' => $this->shouldDisplayDebugLog($debug),
|
||||
'condition' => $this->shouldDisplayDebugLog($debug),
|
||||
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
|
||||
'value' => $debug->get(
|
||||
'target',
|
||||
$this->getBaseDir() . '/var/log/icinga2.debug.log'
|
||||
),
|
||||
'helptext' => 'Set the path to the debug log'
|
||||
)
|
||||
);
|
||||
|
|
|
@ -46,6 +46,7 @@ require_once BaseTestCase::$libDir . '/Util/DateTimeFactory.php';
|
|||
// @codingStandardsIgnoreEnd
|
||||
|
||||
use \DateTimeZone;
|
||||
use \Zend_Config;
|
||||
use \Icinga\User\Preferences;
|
||||
use \Zend_View_Helper_DateFormat;
|
||||
use \Icinga\Util\DateTimeFactory;
|
||||
|
|
Loading…
Reference in New Issue