Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 30, 2024
1 parent 08767ef commit e5948d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/di.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Yiisoft\Yii\Debug\Collector\ContainerProxyConfig;
use Yiisoft\Yii\Debug\Collector\ServiceCollector;
use Yiisoft\Yii\Debug\Collector\Stream\FilesystemStreamCollector;
use Yiisoft\Yii\Debug\DebuggerIdGenerator;
use Yiisoft\Yii\Debug\Storage\FileStorage;
use Yiisoft\Yii\Debug\Storage\StorageInterface;

Expand All @@ -21,9 +20,8 @@
*/

$common = [
StorageInterface::class => static function (ContainerInterface $container, ?Aliases $aliases = null) use ($params) {
StorageInterface::class => static function (?Aliases $aliases = null) use ($params) {
$params = $params['yiisoft/yii-debug'];
$debuggerIdGenerator = $container->get(DebuggerIdGenerator::class);
$excludedClasses = $params['dumper.excludedClasses'];

$path = $params['path'];
Expand All @@ -38,7 +36,7 @@
}
$path = $aliases->get($path);
}
$fileStorage = new FileStorage($path, $debuggerIdGenerator, $excludedClasses);
$fileStorage = new FileStorage($path, $excludedClasses);

if (isset($params['historySize'])) {
$fileStorage->setHistorySize((int) $params['historySize']);
Expand Down

0 comments on commit e5948d6

Please sign in to comment.