Skip to content

Commit

Permalink
Merge pull request #687 from thesebas/patch-1
Browse files Browse the repository at this point in the history
Use correct Response class
  • Loading branch information
l0gicgate committed Dec 12, 2023
2 parents 691220a + 7190920 commit cd1dc81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/v4/concepts/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This example middleware is a Closure.
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
use Slim\Factory\AppFactory;
use Slim\Psr7\Response;
use Psr\Http\Message\ResponseInterface as Response;

require __DIR__ . '/../vendor/autoload.php';

Expand Down Expand Up @@ -102,7 +102,7 @@ This example middleware is an invokable class that implements the magic `__invok
<?php
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
use Slim\Psr7\Response;
use Psr\Http\Message\ResponseInterface as Response;

class ExampleBeforeMiddleware
{
Expand Down Expand Up @@ -189,7 +189,7 @@ Application middleware is invoked for every **incoming** HTTP request. Add appli
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
use Slim\Factory\AppFactory;
use Slim\Psr7\Response;
use Psr\Http\Message\ResponseInterface as Response;

require __DIR__ . '/../vendor/autoload.php';

Expand Down

0 comments on commit cd1dc81

Please sign in to comment.