<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php-middleware / double-pass-compatibility example snippets
$middleware->process($request, $delegate);
$middleware($request, $response, $next);
class Middleware implements MiddlewareInterface
{
use PhpMiddleware\DoublePassCompatibilityTrait;
public function process(ServerRequestInterface $request, DelegateInterface $delegate)
{
// Implementation and return response
}
}
class Middleware extend AbstractDoublePassCompatibilityMiddleware implements MiddlewareInterface
{
public function process(ServerRequestInterface $request, DelegateInterface $delegate)
{
// Implementation and return response
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.