Debuggy time
This commit is contained in:
1 parent
16e0a8f381
commit
9164929969
2 files changed
+7
-2
No files matched your search
@@ -5,10 +5,12 @@ namespace ImageResizer\Lib;
|
||||
|
||||
use ImageResizer\Models\Image;
|
||||
use ImageResizer\Models\ResizeParams;
|
||||
use Psr\Log\AbstractLogger;
|
||||
|
||||
class SqliteImageDb implements ImageDb {
|
||||
public function __construct(
|
||||
private readonly \PDO $db
|
||||
private readonly \PDO $db,
|
||||
private readonly AbstractLogger $logger,
|
||||
) {
|
||||
$this->up();
|
||||
}
|
||||
@@ -22,6 +24,9 @@ class SqliteImageDb implements ImageDb {
|
||||
quality INTEGER NULLABLE,
|
||||
content TEXT NOT NULL
|
||||
)');
|
||||
|
||||
$crs = $this->db->query('SELECT * FROM images');
|
||||
$this->logger->info('Found something', ['results '=> $crs->fetchAll()]);
|
||||
}
|
||||
|
||||
public function findImage(string $path, ResizeParams $params): Image | null {
|
||||
|
||||
Reference in new issue
Block a user