Skip to content

Commit b3c86ce

Browse files
committed
Fix Logger dependency for 8.4.5+ compatibility
1 parent 271f622 commit b3c86ce

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.2.5
2+
- Fix Logger dependency issue in 8.4.5+.
3+
14
1.2.4
25
- Fix pagination bug if there are more than 20 items.
36

controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class Controller extends Package
1212
{
1313
protected $pkgHandle = 'speed_analyzer';
1414
protected $appVersionRequired = '8.2.1';
15-
protected $pkgVersion = '1.2.4';
15+
protected $pkgVersion = '1.2.5';
1616
protected $pkgAutoloaderRegistries = [
1717
'src/SpeedAnalyzer' => '\A3020\SpeedAnalyzer',
1818
];

src/SpeedAnalyzer/Installer/Uninstaller.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
namespace A3020\SpeedAnalyzer\Installer;
44

55
use Concrete\Core\Database\Connection\Connection;
6-
use Concrete\Core\Logging\Logger;
6+
use Psr\Log\LoggerInterface;
77
use Exception;
88

99
class Uninstaller
1010
{
11-
/** @var Connection */
11+
/** @var \Concrete\Core\Database\Connection\Connection */
1212
private $connection;
1313

14-
/** @var Logger */
14+
/** @var Psr\Log\LoggerInterface */
1515
private $logger;
1616

17-
public function __construct(Connection $connection, Logger $logger)
17+
public function __construct(Connection $connection, LoggerInterface $logger)
1818
{
1919
$this->connection = $connection;
2020
$this->logger = $logger;
@@ -36,7 +36,7 @@ private function dropTable($tableName)
3636
try {
3737
$this->connection->executeQuery("DROP TABLE IF EXISTS ".$tableName);
3838
} catch (Exception $e) {
39-
$this->logger->addDebug($e->getMessage());
39+
$this->logger->debug($e->getMessage());
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)