blob: 3b4ea48baab97c9a81cf98ef366266de12165b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
declare(strict_types=1);
namespace BrettParson\MiniRoute\Controller;
/**
* Resolves a class name to an object instance.
*
* Used for both controllers and middleware. Applications provide an
* implementation backed by their own dependency container or plain
* construction, keeping the kernel independent of any specific wiring.
*/
interface ControllerResolverInterface
{
public function resolve(string $class): object;
}
|