1 | <?php |
||
14 | class Route extends AbstractStrategy |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $routes; |
||
20 | |||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | */ |
||
24 | public function shouldCache(MvcEvent $event) |
||
47 | |||
48 | /** |
||
49 | * Check if we should cache the request based on the params in the routematch |
||
50 | * |
||
51 | * @param RouteMatch $match |
||
52 | * @param array $routeConfig |
||
53 | * @return bool |
||
54 | */ |
||
55 | protected function checkParams(RouteMatch $match, $routeConfig) |
||
76 | |||
77 | /** |
||
78 | * @param $actualValue |
||
79 | * @param $checkValue |
||
80 | * @return bool |
||
81 | */ |
||
82 | protected function checkParam($actualValue, $checkValue) |
||
97 | |||
98 | /** |
||
99 | * Check if we should cache the request based on http method requested |
||
100 | * |
||
101 | * @param MvcEvent $event |
||
102 | * @param $routeConfig |
||
103 | * @return bool |
||
104 | */ |
||
105 | protected function checkHttpMethod(MvcEvent $event, $routeConfig) |
||
121 | |||
122 | /** |
||
123 | * @param $routeName |
||
124 | * @return array |
||
125 | */ |
||
126 | protected function getRouteConfig($routeName) |
||
135 | |||
136 | /** |
||
137 | * @return array |
||
138 | */ |
||
139 | public function getRoutes() |
||
143 | |||
144 | /** |
||
145 | * @param array $routes |
||
146 | */ |
||
147 | public function setRoutes(array $routes) |
||
151 | } |
||
152 |