Skip to content

Commit

Permalink
Merge branch 'master' into object-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz authored Sep 8, 2024
2 parents 1d77c4f + 544e56d commit e14cb23
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 203 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"yiisoft/error-handler": "^3.0",
"yiisoft/event-dispatcher": "^1.0",
"yiisoft/log": "^2.0",
"yiisoft/middleware-dispatcher": "^3.0|^4.0|^5.0",
"yiisoft/yii-console": "^2.0",
"yiisoft/yii-http": "^1.0"
},
Expand Down
13 changes: 2 additions & 11 deletions config/events-web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@
declare(strict_types=1);

use Yiisoft\ErrorHandler\Event\ApplicationError;
use Yiisoft\Middleware\Dispatcher\Event\AfterMiddleware;
use Yiisoft\Middleware\Dispatcher\Event\BeforeMiddleware;
use Yiisoft\Profiler\ProfilerInterface;
use Yiisoft\Yii\Debug\Collector\Web\MiddlewareCollector;
use Yiisoft\Yii\Debug\Collector\ExceptionCollector;
use Yiisoft\Yii\Debug\Collector\Web\RequestCollector;
use Yiisoft\Yii\Debug\Collector\Web\WebAppInfoCollector;
use Yiisoft\Yii\Debug\Collector\ExceptionCollector;
use Yiisoft\Yii\Debug\Debugger;
use Yiisoft\Yii\Http\Event\AfterEmit;
use Yiisoft\Yii\Http\Event\AfterRequest;
use Yiisoft\Yii\Http\Event\ApplicationShutdown;
use Yiisoft\Yii\Http\Event\ApplicationStartup;
use Yiisoft\Yii\Http\Event\BeforeRequest;

if (!(bool)($params['yiisoft/yii-debug']['enabled'] ?? false)) {
if (!(bool) ($params['yiisoft/yii-debug']['enabled'] ?? false)) {
return [];
}

Expand All @@ -42,12 +39,6 @@
[WebAppInfoCollector::class, 'collect'],
[Debugger::class, 'shutdown'],
],
BeforeMiddleware::class => [
[MiddlewareCollector::class, 'collect'],
],
AfterMiddleware::class => [
[MiddlewareCollector::class, 'collect'],
],
ApplicationError::class => [
[ExceptionCollector::class, 'collect'],
],
Expand Down
2 changes: 0 additions & 2 deletions config/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Yiisoft\Yii\Debug\Collector\Stream\HttpStreamCollector;
use Yiisoft\Yii\Debug\Collector\TimelineCollector;
use Yiisoft\Yii\Debug\Collector\VarDumperCollector;
use Yiisoft\Yii\Debug\Collector\Web\MiddlewareCollector;
use Yiisoft\Yii\Debug\Collector\Web\RequestCollector;
use Yiisoft\Yii\Debug\Collector\Web\WebAppInfoCollector;
use Yiisoft\Yii\Debug\Command\DebugContainerCommand;
Expand Down Expand Up @@ -50,7 +49,6 @@
'collectors.web' => [
WebAppInfoCollector::class,
RequestCollector::class,
MiddlewareCollector::class,
],
'collectors.console' => [
ConsoleAppInfoCollector::class,
Expand Down
114 changes: 0 additions & 114 deletions src/Collector/Web/MiddlewareCollector.php

This file was deleted.

57 changes: 0 additions & 57 deletions tests/Unit/Collector/MiddlewareCollectorTest.php

This file was deleted.

18 changes: 0 additions & 18 deletions tests/Unit/Support/DummyMiddleware.php

This file was deleted.

0 comments on commit e14cb23

Please sign in to comment.