PHP Class Psr7Middlewares\Middleware\DebugBar

Inheritance: use trait Psr7Middlewares\Utils\HtmlInjectorTrait, use trait Psr7Middlewares\Utils\AttributeTrait
Afficher le fichier Open project: oscarotero/psr7-middlewares

Méthodes publiques

Méthode Description
__construct ( DebugBar\DebugBar $debugBar = null ) Constructor. Set the debug bar.
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.
captureAjax ( boolean $captureAjax = true ) : self Configure whether capture ajax requests to send the data with headers.

Method Details

__construct() public méthode

Constructor. Set the debug bar.
public __construct ( DebugBar\DebugBar $debugBar = null )
$debugBar DebugBar\DebugBar

__invoke() public méthode

Execute the middleware.
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
Résultat Psr\Http\Message\ResponseInterface

captureAjax() public méthode

Configure whether capture ajax requests to send the data with headers.
public captureAjax ( boolean $captureAjax = true ) : self
$captureAjax boolean
Résultat self