/** * @return array */ public function getConnectionNames() { $this->loadConnections(); if ($this->connections instanceof \Pimple) { return $this->connections->keys(); } else { return array_keys($this->connections); } }