PHP Class Psr7Middlewares\Middleware\Robots

Afficher le fichier Open project: oscarotero/psr7-middlewares

Méthodes publiques

Méthode Description
__construct ( boolean $allow = false ) Set whether search engines are allowed or not.
__invoke ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.

Method Details

__construct() public méthode

Set whether search engines are allowed or not.
public __construct ( boolean $allow = false )
$allow boolean

__invoke() public méthode

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