1 | <?php |
||
23 | class RouteProvider implements RouteProviderInterface |
||
|
|||
24 | { |
||
25 | /** |
||
26 | * @var RepositoryInterface |
||
27 | */ |
||
28 | private $routeRepository; |
||
29 | |||
30 | /** |
||
31 | * @var TenantAwarePathBuilderInterface |
||
32 | */ |
||
33 | private $pathBuilder; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | private $basePaths; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $defaultPath; |
||
44 | |||
45 | /** |
||
46 | * RouteProvider constructor. |
||
47 | * |
||
48 | * @param RepositoryInterface $routeRepository Route repository |
||
49 | * @param TenantAwarePathBuilderInterface $pathBuilder Path builder |
||
50 | * @param array $basePaths Tenant's path under which all other routes are stored |
||
51 | * @param string $defaultPath Default path under which the articles are stored |
||
52 | */ |
||
53 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function getBaseRoute() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function getOneById($id) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function getRouteForArticle(ArticleInterface $article) |
||
102 | } |
||
103 |