Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 1c99335

Browse files
committed
Consistency: Update dnew call.
1 parent feba2c4 commit 1c99335

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Dal.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
namespace Hoa\Database;
3838

39+
use Hoa\Consistency;
3940
use Hoa\Core;
4041
use Hoa\Event;
4142

@@ -296,10 +297,12 @@ private function open()
296297
$dsn = 'sqlite:' . resolve($matches[1]);
297298
}
298299

299-
$this->setDal(dnew(
300-
'\Hoa\Database\Layer\\' . $dalName,
301-
[$dsn, $username, $password, $driverOptions]
302-
));
300+
$this->setDal(
301+
Consistency\Autoloader::dnew(
302+
'Hoa\Database\Layer\\' . $dalName,
303+
[$dsn, $username, $password, $driverOptions]
304+
)
305+
);
303306

304307
$id = $this->getId();
305308
Event::notify(

0 commit comments

Comments
 (0)