1 | <?php declare(strict_types = 1); |
||
8 | final class CallableController implements ControllerInterface |
||
9 | { |
||
10 | 5 | public static function fromCallable(callable $closure) : self |
|
14 | |||
15 | public static function factoryFromCallable(callable $closure) : callable |
||
21 | |||
22 | /** @var callable */ |
||
23 | private $closure; |
||
24 | |||
25 | 5 | private function __construct(callable $closure) |
|
29 | |||
30 | 4 | public function execute(ServerRequestInterface $request) : ResponseInterface |
|
34 | } |
||
35 |