mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
parent
49cf62a9dc
commit
0c69dbf482
@ -246,7 +246,7 @@ class DbAdapterFactory implements ConfigAwareFactory
|
||||
private static function callFactory($adapter, $options)
|
||||
{
|
||||
$factory = self::$factoryClass;
|
||||
$optionModifierCallback = __CLASS__. '::get' . ucfirst(str_replace('_', '', $adapter)) . 'Options';
|
||||
$optionModifierCallback = __CLASS__ . '::get' . ucfirst(str_replace('_', '', $adapter)) . 'Options';
|
||||
if (is_callable($optionModifierCallback)) {
|
||||
$options = call_user_func($optionModifierCallback, $options);
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ class Manager
|
||||
{
|
||||
$type = ucwords(strtolower($backendConfig->backend));
|
||||
if (!$type) {
|
||||
Logger::warn('No type given...');
|
||||
Logger::warn('Backend has no type configured. (e.g. backend=ldap)');
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
@ -214,7 +214,8 @@ class Manager
|
||||
* in the current session
|
||||
*
|
||||
* @return Boolean true on success, otherwise false
|
||||
**/
|
||||
* @throws ConfigError
|
||||
*/
|
||||
public function authenticate(Credentials $credentials, $persist = true)
|
||||
{
|
||||
if (!$this->userBackend) {
|
||||
|
@ -93,7 +93,6 @@ class DbStore implements LoadInterface, FlushObserverInterface
|
||||
public function setDbAdapter(Zend_Db_Adapter_Abstract $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
$this->db->getProfiler()->setEnabled(true);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user