protected function getStorageGateway() { if (!isset($this->storageGateway)) { $this->storageGateway = new LegacyStorage(new UrlStorage()); $this->storageGateway->setConnection($this->getDatabaseHandler()); } return $this->storageGateway; }