Skip to content

Commit 4c38b3c

Browse files
committed
use db function instead of calling by service
1 parent 6648842 commit 4c38b3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DependencyInjector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function service($name) {
1818
return $this->_getDependency($name, $this->_scope);
1919
}
2020
private function _getDependency($name, $scope = null) {
21-
if ($this->tipsy()->services($name)) {
21+
if ($this->tipsy()->services($name) && $name != 'Db') {
2222
return $this->tipsy()->service($name);
2323

2424
} else {

0 commit comments

Comments
 (0)