Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Nov 12, 2022
1 parent 0c5c1d2 commit f11e1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/src/Database/DatabaseServiceProvider.php
Expand Up @@ -13,7 +13,7 @@ class DatabaseServiceProvider extends ServiceProvider
{
public function register(): void
{
di(PDO::class);
$this->container->get(PDO::class);
$connection = Manager::connection();
DB::swap($connection);
}
Expand Down
2 changes: 1 addition & 1 deletion system/src/Database/PdoFactory.php
Expand Up @@ -21,7 +21,7 @@ class PdoFactory
{
public function __invoke(ContainerInterface $container): PDO
{
$config = di('config')['pdo'];
$config = $container->get('config')['pdo'];

$capsule = new Capsule();
$capsule->addConnection(
Expand Down

0 comments on commit f11e1e0

Please sign in to comment.