1 | <?php |
||
27 | class RouteProvider extends BaseRouteProvider implements RouteProviderInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var RouteRepositoryInterface |
||
31 | */ |
||
32 | private $routeRepository; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | private $internalRoutesCache; |
||
38 | |||
39 | /** |
||
40 | * @var CandidatesInterface |
||
41 | */ |
||
42 | 111 | private $candidatesStrategy; |
|
|
|||
43 | |||
44 | /** |
||
45 | * RouteProvider constructor. |
||
46 | * |
||
47 | * @param RouteRepositoryInterface $routeRepository |
||
48 | 111 | * @param ManagerRegistry $managerRegistry |
|
49 | 111 | * @param CandidatesInterface $candidatesStrategy |
|
50 | 111 | * @param string $className |
|
51 | */ |
||
52 | 111 | public function __construct(RouteRepositoryInterface $routeRepository, ManagerRegistry $managerRegistry, CandidatesInterface $candidatesStrategy, string $className) |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getRouteCollectionForRequest(Request $request) |
||
82 | |||
83 | /** |
||
84 | * @return RouteRepositoryInterface |
||
85 | */ |
||
86 | public function getRepository(): RouteRepositoryInterface |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getBaseRoute() |
||
98 | 58 | ||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | 96 | */ |
|
102 | public function getOneById($id) |
||
106 | 96 | ||
107 | 96 | /** |
|
108 | 80 | * {@inheritdoc} |
|
109 | */ |
||
110 | public function getOneByStaticPrefix($staticPrefix) |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function getRouteByName($name) |
||
136 | } |
||
137 |