Пример #1
0
 /**
  * @return Database
  */
 protected function getDatabase()
 {
     if (!isset($this->db)) {
         $this->db = $this->config->getDatabase($this->storeName, $this->config->getDataSourceForPod($this->storeName, $this->podName), $this->readPreference);
     }
     return $this->db;
 }