1 | <?php |
||
9 | class TopicRouter |
||
10 | { |
||
11 | /** |
||
12 | * @var UrlMatcher |
||
13 | */ |
||
14 | private $urlMatcher; |
||
15 | |||
16 | /** |
||
17 | * @param UrlMatcher $urlMatcher |
||
18 | */ |
||
19 | public function __construct(UrlMatcher $urlMatcher) |
||
23 | |||
24 | /** |
||
25 | * @param string $topicPath |
||
26 | * |
||
27 | * @return Topic |
||
28 | * |
||
29 | * @throws LogicException when cannot load topic. |
||
30 | */ |
||
31 | public function loadTopic($topicPath) |
||
52 | } |
||
53 |