Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if (!strlen($namespace)) { | ||||
throw new Exception('No storage namespace configured!'); | throw new Exception('No storage namespace configured!'); | ||||
} | } | ||||
return $namespace; | return $namespace; | ||||
} | } | ||||
/** | /** | ||||
* @task config | * @task config | ||||
*/ | */ | ||||
public function establishLiveConnection($mode) { | protected function establishLiveConnection($mode) { | ||||
$namespace = self::getStorageNamespace(); | $namespace = self::getStorageNamespace(); | ||||
$conf = PhabricatorEnv::newObjectFromConfig( | $conf = PhabricatorEnv::newObjectFromConfig( | ||||
'mysql.configuration-provider', | 'mysql.configuration-provider', | ||||
array($this, $mode, $namespace)); | array($this, $mode, $namespace)); | ||||
return PhabricatorEnv::newObjectFromConfig( | return PhabricatorEnv::newObjectFromConfig( | ||||
'mysql.implementation', | 'mysql.implementation', | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |