1 | <?php |
||
8 | class SimpleHandlerFactory implements HandlerFactoryInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $routes; |
||
14 | |||
15 | /** |
||
16 | * @param array $routes |
||
17 | */ |
||
18 | 4 | public function __construct(array $routes = []) |
|
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | 4 | public function get($handler) |
|
43 | |||
44 | /** |
||
45 | * Get the routes handler |
||
46 | * |
||
47 | * @param string $handler |
||
48 | * |
||
49 | * @return mixed|null |
||
50 | */ |
||
51 | 4 | private function getRoute($handler) |
|
55 | } |
||
56 |