setConnection() public method

Set database handler for this gateway.
public setConnection ( mixed $dbHandler )
$dbHandler mixed
 /**
  * Returns a ready to test LegacyStorage gateway
  *
  * @return \eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway\LegacyStorage
  */
 protected function getStorageGateway()
 {
     if (!isset($this->storageGateway)) {
         $this->storageGateway = new LegacyStorage(new UrlStorage());
         $this->storageGateway->setConnection($this->getDatabaseHandler());
     }
     return $this->storageGateway;
 }