/** * @inheritdoc */ public static function getDb() { if (Configs::db() !== null) { return Configs::db(); } else { return parent::getDb(); } }
/** * Use to invalidate cache. */ public static function invalidate() { if (Configs::cache() !== null) { TagDependency::invalidate(Configs::cache(), self::CACHE_TAG); } }
/** * @inheritdoc */ public function safeDown() { $this->dropTable(Configs::menuTable()); }