Skip to content

Commit 155e27d

Browse files
committed
uses new interfaces
1 parent 3fb5bb1 commit 155e27d

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Database/Explorer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ class Explorer
2626

2727
private Conventions $conventions;
2828

29-
private ?Nette\Caching\IStorage $cacheStorage;
29+
private ?Nette\Caching\Storage $cacheStorage;
3030

3131

3232
public function __construct(
3333
Connection $connection,
3434
Structure $structure,
3535
Conventions $conventions = null,
36-
Nette\Caching\IStorage $cacheStorage = null,
36+
Nette\Caching\Storage $cacheStorage = null,
3737
) {
3838
$this->connection = $connection;
3939
$this->structure = $structure;

src/Database/Structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Structure implements IStructure
2828
protected bool $isRebuilt = false;
2929

3030

31-
public function __construct(Connection $connection, Nette\Caching\IStorage $cacheStorage)
31+
public function __construct(Connection $connection, Nette\Caching\Storage $cacheStorage)
3232
{
3333
$this->connection = $connection;
3434
$this->cache = new Nette\Caching\Cache($cacheStorage, 'Nette.Database.Structure.' . md5($this->connection->getDsn()));

src/Database/Table/GroupedSelection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
string $tableName,
4343
string $column,
4444
Selection $refTable,
45-
Nette\Caching\IStorage $cacheStorage = null,
45+
Nette\Caching\Storage $cacheStorage = null,
4646
) {
4747
$this->refTable = $refTable;
4848
$this->column = $column;

src/Database/Table/Selection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct(
8282
Explorer $explorer,
8383
Conventions $conventions,
8484
string $tableName,
85-
Nette\Caching\IStorage $cacheStorage = null,
85+
Nette\Caching\Storage $cacheStorage = null,
8686
) {
8787
$this->explorer = $this->context = $explorer;
8888
$this->conventions = $conventions;

0 commit comments

Comments
 (0)