Skip to content

Commit

Permalink
added database provider interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Apr 16, 2019
1 parent 33c1514 commit 9dee0b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
use Cycle\Schema\Definition\Entity;
use Cycle\Schema\Exception\RegistryException;
use Cycle\Schema\Exception\RelationException;
use Spiral\Database\DatabaseManager;
use Spiral\Database\DatabaseProviderInterface;
use Spiral\Database\Exception\DBALException;
use Spiral\Database\Schema\AbstractTable;

final class Registry implements \IteratorAggregate
{
/** @var DatabaseManager */
/** @var DatabaseProviderInterface */
private $dbal;

/** @var Entity[] */
Expand All @@ -33,9 +33,9 @@ final class Registry implements \IteratorAggregate
private $relations;

/**
* @param DatabaseManager $dbal
* @param DatabaseProviderInterface $dbal
*/
public function __construct(DatabaseManager $dbal)
public function __construct(DatabaseProviderInterface $dbal)
{
$this->dbal = $dbal;
$this->tables = new \SplObjectStorage();
Expand Down

0 comments on commit 9dee0b2

Please sign in to comment.