PHP Classes

File: src/Discretion/MiddlewareInterface.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Discretion   src/Discretion/MiddlewareInterface.php   Download  
File: src/Discretion/MiddlewareInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Discretion
Show contact forms and deliver encrypted mail
Author: By
Last change:
Date: 2 years ago
Size: 501 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Discretion;

use
Psr\Http\Message\{
   
RequestInterface,
   
ResponseInterface
};

/**
 * Interface MiddlewareInterface
 * @package ParagonIE\Chronicle
 */
interface MiddlewareInterface
{
   
/**
     * @param RequestInterface $request
     * @param ResponseInterface $response
     * @param callable $next
     */
   
public function __invoke(
       
RequestInterface $request,
       
ResponseInterface $response,
        callable
$next
   
);
}