refactor(admin/middleware): update request type to app\Request
Change the type of the request parameter in middleware handle functions to use app\Request instead of the plain $request. This update clarifies the expected request object type for better type checking and autocompletion support.
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
namespace app\admin\middleware;
|
||||
|
||||
use app\common\traits\JumpTrait;
|
||||
use app\Request;
|
||||
use Closure;
|
||||
|
||||
class CheckInstall
|
||||
{
|
||||
use JumpTrait;
|
||||
|
||||
public function handle($request, Closure $next)
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
$controller = $request->controller();
|
||||
if (!is_file(root_path() . 'config' . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'lock' . DIRECTORY_SEPARATOR . 'install.lock')) {
|
||||
|
||||
Reference in New Issue
Block a user