系统类库
[ 查看开发文档 ] [ 类树图: Library ] [ 索引: Library ] [ 所有元素 ] [ 首页 ]

Class: Middleware

源文件路径: /Library/Middleware.class.php

Class Overview


中间件基类


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 9]
中间件基类


[ Top ]


Class Variables

$context = null

[line 15]

应用上下文对象
  • Access: protected

Type:   \Library\Application


[ Top ]



Method Detail

__construct (Constructor)   [line 22]

Middleware __construct( Application $context)

构造应用上下文对象
  • Access: public

Parameters:

\Library\Application   $context   — 

[ Top ]

handle   [line 34]

\Closure handle( Closure \$next, \Library\Request $request, \Library\Response $response, \Closure $next)

中间件处理器
  • Access: public

Parameters:

\Closure   $next   —  下个处理器
\Library\Request   $request   —  应用Request对象
\Library\Response   $response   —  应用Response对象
Closure   \$next   — 

[ Top ]


Powered by Steeze. author email: spring.wind2006@163.com