Total Complexity | 2 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class OrderCustomReferenceWidgetRouteProviderPlugin extends AbstractRouteProviderPlugin |
||
14 | { |
||
15 | protected const ROUTE_ORDER_CUSTOM_REFERENCE_SAVE = 'order-custom-reference/save'; |
||
16 | |||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | * - Adds order custom reference save action to RouteCollection. |
||
20 | * |
||
21 | * @api |
||
22 | * |
||
23 | * @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
||
24 | * |
||
25 | * @return \Spryker\Yves\Router\Route\RouteCollection |
||
26 | */ |
||
27 | public function addRoutes(RouteCollection $routeCollection): RouteCollection |
||
28 | { |
||
29 | $routeCollection = $this->addOrderCustomReferenceSaveRoute($routeCollection); |
||
30 | |||
31 | return $routeCollection; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @uses \SprykerShop\Yves\OrderCustomReferenceWidget\Controller\OrderCustomReferenceController::saveAction() |
||
36 | * |
||
37 | * @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
||
38 | * |
||
39 | * @return \Spryker\Yves\Router\Route\RouteCollection |
||
40 | */ |
||
41 | protected function addOrderCustomReferenceSaveRoute(RouteCollection $routeCollection): RouteCollection |
||
52 | } |
||
53 | } |
||
54 |