Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug In ConnectionManager::config() when passing an object inst…
…ance When passing an already constructed instance to ConnectionManager::config(), it was cloning the object instead of storing the same object instance in the registry. This made impossible inject mocked connection objects into the manager. Additionally, made the ConnectionRegistry also accept a callable, responsible for returning an already built connection instance. This brings the config() method in line with how the Log class works.
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters