Differential D16913 Diff 40725 src/infrastructure/cluster/PhabricatorClusterDatabasesConfigOptionType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/cluster/PhabricatorClusterDatabasesConfigOptionType.php
| Show All 31 Lines | foreach ($value as $index => $spec) { | ||||
| 'host' => 'string', | 'host' => 'string', | ||||
| 'role' => 'string', | 'role' => 'string', | ||||
| 'port' => 'optional int', | 'port' => 'optional int', | ||||
| 'user' => 'optional string', | 'user' => 'optional string', | ||||
| 'pass' => 'optional string', | 'pass' => 'optional string', | ||||
| 'disabled' => 'optional bool', | 'disabled' => 'optional bool', | ||||
| 'master' => 'optional string', | 'master' => 'optional string', | ||||
| 'partition' => 'optional list<string>', | 'partition' => 'optional list<string>', | ||||
| 'persistent' => 'optional bool', | |||||
| )); | )); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Database cluster configuration has an invalid host '. | 'Database cluster configuration has an invalid host '. | ||||
| 'specification (at index "%s"): %s.', | 'specification (at index "%s"): %s.', | ||||
| $index, | $index, | ||||
| $ex->getMessage())); | $ex->getMessage())); | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||