Skip to content

Commit

Permalink
EZP-21914: Added set/getDbHandler to Legacy\EzcDbHandler
Browse files Browse the repository at this point in the history
Allows us to reset the db link when required, for instance
when forking.
(cherry picked from commit 13d9cd2)
  • Loading branch information
Bertrand Dunogier committed Nov 8, 2013
1 parent 66eddd8 commit f9f60b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions eZ/Publish/Core/Persistence/Legacy/EzcDbHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ public function __construct( ezcDbHandlerWrapped $ezcDbHandler )
$this->ezcDbHandler = $ezcDbHandler;
}

public function setDbHandler( ezcDbHandlerWrapped $ezcDbHandler )
{
$this->ezcDbHandler = $ezcDbHandler;
}

/**
* @return \ezcDbHandler
*/
public function getDbHandler()
{
return $this->ezcDbHandler;
}

/**
* Factory for getting EzcDbHandler handler object
*
Expand Down

0 comments on commit f9f60b4

Please sign in to comment.