Skip to content

Commit

Permalink
Update Test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
localzet committed Aug 21, 2024
1 parent 85bb9aa commit f950c3f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/middleware/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@

use Throwable;
use Triangle\Middleware\MiddlewareInterface;
use Triangle\Ws\{Request, Response};
use Triangle\Ws\Request;

class Test implements MiddlewareInterface
{
/**
* @param Request $request
* @param callable $handler
* @return Response
* @throws Throwable
* @return mixed
*/
public function process($request, callable $handler): Response
public function process($request, callable $handler)
{
return $handler($request)->withHeader('withHeader', 'Работает!!!');
}
Expand Down

0 comments on commit f950c3f

Please sign in to comment.