-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Http; | ||
|
||
use SwooleTW\Hyperf\Foundation\Http\Kernel as HttpKernel; | ||
|
||
class Kernel extends HttpKernel | ||
{ | ||
/** | ||
* The application's global HTTP middleware stack. | ||
* | ||
* These middleware are run during every request to your application. | ||
* | ||
* @var array<int, class-string|string> | ||
*/ | ||
protected array $middleware = [ | ||
// \SwooleTW\Hyperf\Cookie\Middleware\AddQueuedCookiesToResponse::class, | ||
]; | ||
|
||
/** | ||
* The application's route middleware groups. | ||
* | ||
* @var array<string, array<int, class-string|string>> | ||
*/ | ||
protected array $middlewareGroups = [ | ||
'web' => [ | ||
// | ||
], | ||
|
||
'api' => [ | ||
// | ||
], | ||
]; | ||
|
||
/** | ||
* The application's middleware aliases. | ||
* | ||
* Aliases may be used instead of class names to conveniently assign middleware to routes and groups. | ||
* | ||
* @var array<string, class-string|string> | ||
*/ | ||
protected array $middlewareAliases = [ | ||
// | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters