1 | <?php |
||
15 | class RoutePublisher |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Returns an array of DynamicRoutes with keys being their name. |
||
20 | * @return \ElementsFramework\DynamicRouting\Model\DynamicRoute[] |
||
21 | */ |
||
22 | protected function getStoredProvidedRoutes() |
||
29 | |||
30 | /** |
||
31 | * Creates all published route that have not been already created and returns them. |
||
32 | * @return \ElementsFramework\DynamicRouting\Model\DynamicRoute[] |
||
33 | * @throws \ElementsFramework\DynamicRouting\Exception\HandlerNotFoundException |
||
34 | * @throws \ElementsFramework\DynamicRouting\Exception\HandlerValidationFailedForRouteException |
||
35 | */ |
||
36 | public function publishProvidedRoutes() |
||
54 | |||
55 | /** |
||
56 | * Deletes all routes that are not published anymore and returns the deleted routes. |
||
57 | * @return \ElementsFramework\DynamicRouting\Model\DynamicRoute[] |
||
58 | * @throws \Exception |
||
59 | */ |
||
60 | public function cleanupProvidedRoutes() |
||
78 | |||
79 | /** |
||
80 | * Publishes all new, and deletes all removed provided routes. |
||
81 | */ |
||
82 | public function syncProvidedRoutes() |
||
87 | |||
88 | |||
89 | |||
90 | } |