lock = StaticContainer::getContainer()->make( Lock::class, array ('namespace' => 'PluginSettingsTable') ); } protected function initDbIfNeeded() { if (!isset($this->db)) { // we do not want to create a db connection on backend creation $this->db = Db::get(); } } }