Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigCoreSchemaSpec.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Builds schemata definitions for core infrastructure. | * Builds schemata definitions for core infrastructure. | ||||
| */ | */ | ||||
| final class PhabricatorConfigCoreSchemaSpec | final class PhabricatorConfigCoreSchemaSpec | ||||
| extends PhabricatorConfigSchemaSpec { | extends PhabricatorConfigSchemaSpec { | ||||
| public function buildSchemata() { | public function buildSchemata() { | ||||
| // Build all Lisk table schemata. | // Build all Lisk table schemata. | ||||
| $lisk_objects = id(new PhutilSymbolLoader()) | $lisk_objects = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('PhabricatorLiskDAO') | ->setAncestorClass('PhabricatorLiskDAO') | ||||
| ->loadObjects(); | ->execute(); | ||||
| $counters = array(); | $counters = array(); | ||||
| foreach ($lisk_objects as $object) { | foreach ($lisk_objects as $object) { | ||||
| if ($object->getConfigOption(LiskDAO::CONFIG_NO_TABLE)) { | if ($object->getConfigOption(LiskDAO::CONFIG_NO_TABLE)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $this->buildLiskObjectSchema($object); | $this->buildLiskObjectSchema($object); | ||||
| Show All 24 Lines | |||||