summaryrefslogtreecommitdiff
path: root/src/Contracts/Strategy.php
blob: 81d6ec348700d06603bd4fb74e70c49841043b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

declare(strict_types=1);

namespace Lightscale\Router\Contracts;

use Lightscale\Router\RouteCall;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

interface Strategy
{
    public function runRoute(RouteCall $call): ResponseInterface;
    public function notFound(RequestInterface $request): ResponseInterface;
}