Skip to content

Commit

Permalink
Fixed calling of PdoFactory load() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Aug 13, 2019
1 parent 10c3e14 commit 31747bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/DatabaseProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DatabaseProvider extends AbstractProvider
public function register(array $parameters = [])
{
$this->di->setShared($this->providerName, function () use ($parameters) {
return PdoFactory::load($parameters);
return (new PdoFactory())->load($parameters);
});
}
}

0 comments on commit 31747bd

Please sign in to comment.