1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. |
5
|
|
|
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace SprykerFeature\Yves\SelfServicePortal\Plugin\Router; |
9
|
|
|
|
10
|
|
|
use Spryker\Yves\Router\Plugin\RouteProvider\AbstractRouteProviderPlugin; |
11
|
|
|
use Spryker\Yves\Router\Route\RouteCollection; |
12
|
|
|
|
13
|
|
|
class SelfServicePortalPageRouteProviderPlugin extends AbstractRouteProviderPlugin |
14
|
|
|
{ |
15
|
|
|
/** |
16
|
|
|
* @var string |
17
|
|
|
*/ |
18
|
|
|
public const ROUTE_NAME_SSP_SERVICE_POINT_WIDGET_CONTENT = 'customer/ssp-service-point-widget-content'; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
public const ROUTE_NAME_SSP_SERVICE_POINT_SEARCH = 'customer/ssp-service-point-widget/search'; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string |
27
|
|
|
*/ |
28
|
|
|
public const ROUTE_NAME_SSP_SERVICE_LIST = 'customer/ssp-service/list'; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var string |
32
|
|
|
*/ |
33
|
|
|
public const ROUTE_NAME_SSP_SERVICE_UPDATE_SERVICE_TIME = 'customer/ssp-service/update-service-time'; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var string |
37
|
|
|
*/ |
38
|
|
|
public const ROUTE_NAME_SSP_SERVICE_CANCEL_SERVICE = 'customer/ssp-service/cancel-service'; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var string |
42
|
|
|
*/ |
43
|
|
|
protected const PATTERN_SSP_SERVICE_POINT_WIDGET_CONTENT = '/customer/ssp-service-point-widget-content'; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var string |
47
|
|
|
*/ |
48
|
|
|
protected const ROUTE_NAME_SSP_COMPANY_FILE_DOWNLOAD = 'customer/ssp-file/download'; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var string |
52
|
|
|
*/ |
53
|
|
|
protected const ROUTE_NAME_SSP_COMPANY_FILE_LIST_FILE = 'customer/ssp-file/list-file'; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
public const ROUTE_NAME_DASHBOARD_INDEX = 'customer/ssp-dashboard'; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
*/ |
63
|
|
|
public const ROUTE_NAME_SSP_INQUIRY = 'customer/ssp-inquiry/create'; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var string |
67
|
|
|
*/ |
68
|
|
|
public const ROUTE_NAME_SSP_INQUIRY_LIST = 'customer/ssp-inquiry'; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var string |
72
|
|
|
*/ |
73
|
|
|
public const ROUTE_NAME_SSP_INQUIRY_CANCEL = 'customer/ssp-inquiry/cancel'; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var string |
77
|
|
|
*/ |
78
|
|
|
public const ROUTE_NAME_SSP_INQUIRY_DETAILS = 'customer/ssp-inquiry/details'; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var string |
82
|
|
|
*/ |
83
|
|
|
public const ROUTE_NAME_SSP_INQUIRY_FILE_DOWNLOAD = '/customer/ssp-inquiry-file/download'; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var string |
87
|
|
|
*/ |
88
|
|
|
protected const ROUTE_SSP_ASSET_MANAGEMENT_WIDGET_CONTENT = 'customer/ssp-asset/widget-content'; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @var string |
92
|
|
|
*/ |
93
|
|
|
public const ROUTE_NAME_ASSET_DETAILS = 'customer/ssp-asset/details'; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @var string |
97
|
|
|
*/ |
98
|
|
|
public const ROUTE_NAME_ASSET_CREATE = 'customer/ssp-asset/create'; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @var string |
102
|
|
|
*/ |
103
|
|
|
public const ROUTE_NAME_ASSET_UPDATE = 'customer/ssp-asset/update'; |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @var string |
107
|
|
|
*/ |
108
|
|
|
public const ROUTE_NAME_ASSET_LIST = 'customer/ssp-asset'; |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @var string |
112
|
|
|
*/ |
113
|
|
|
public const ROUTE_NAME_ASSET_VIEW_IMAGE = 'customer/ssp-asset/view-image'; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @var string |
117
|
|
|
*/ |
118
|
|
|
public const ROUTE_NAME_ASSET_UPDATE_RELATIONS = 'customer/ssp-asset/update-relations'; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @var string |
122
|
|
|
*/ |
123
|
|
|
public const ROUTE_NAME_ASSET_SEARCH = 'customer/ssp-asset/search'; |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @var string |
127
|
|
|
*/ |
128
|
|
|
protected const ROUTE_NAME_SSP_ASSET_ATTACH_TO_CART_ITEM = '/customer/ssp-asset/attach-to-cart-item'; |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @var string |
132
|
|
|
*/ |
133
|
|
|
protected const PATTERN_SSP_COMPANY_FILE_DOWNLOAD = '/customer/ssp-file/download'; |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @var string |
137
|
|
|
*/ |
138
|
|
|
protected const PATTERN_SSP_SERVICE_POINT_SEARCH = '/customer/ssp-service-point-widget/search'; |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @var string |
142
|
|
|
*/ |
143
|
|
|
protected const PATTERN_SSP_SERVICE_LIST = '/customer/ssp-service/list'; |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @var string |
147
|
|
|
*/ |
148
|
|
|
protected const PATTERN_SSP_SERVICE_UPDATE_SERVICE_TIME = '/customer/ssp-service/update-service-time'; |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @var string |
152
|
|
|
*/ |
153
|
|
|
protected const PATTERN_SSP_SERVICE_CANCEL_SERVICE = '/customer/ssp-service/cancel-service'; |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @var string |
157
|
|
|
*/ |
158
|
|
|
protected const PATTERN_SSP_COMPANY_FILE_LIST_FILE = '/customer/ssp-file/list-file'; |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @var string |
162
|
|
|
*/ |
163
|
|
|
protected const REFERENCE_REGEX = '[a-zA-Z0-9-_]+'; |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @var string |
167
|
|
|
*/ |
168
|
|
|
protected const PARAM_SSP_INQUIRY_REFERENCE = 'sspInquiryReference'; |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* {@inheritDoc} |
172
|
|
|
* - Adds routes to the route collection. |
173
|
|
|
* |
174
|
|
|
* @api |
175
|
|
|
* |
176
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
177
|
|
|
* |
178
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
179
|
|
|
*/ |
180
|
|
|
public function addRoutes(RouteCollection $routeCollection): RouteCollection |
181
|
|
|
{ |
182
|
|
|
$routeCollection = $this->addSspServicePointWidgetContentRoute($routeCollection); |
183
|
|
|
$routeCollection = $this->addSspServicePointSearchRoute($routeCollection); |
184
|
|
|
$routeCollection = $this->addSspServiceListRoute($routeCollection); |
185
|
|
|
$routeCollection = $this->addSspServiceUpdateServiceTimeRoute($routeCollection); |
186
|
|
|
$routeCollection = $this->addSspServiceCancelServiceRoute($routeCollection); |
187
|
|
|
$routeCollection = $this->addSspCompanyFileListFileRoute($routeCollection); |
188
|
|
|
$routeCollection = $this->addSspCompanyFileDownloadRoute($routeCollection); |
189
|
|
|
$routeCollection = $this->addCustomerDashboardRoute($routeCollection); |
190
|
|
|
$routeCollection = $this->addCustomerSspInquiryCreateRoute($routeCollection); |
191
|
|
|
$routeCollection = $this->addCustomerSspInquiryDetailsRoute($routeCollection); |
192
|
|
|
$routeCollection = $this->addSspInquiryCancelRoute($routeCollection); |
193
|
|
|
$routeCollection = $this->addCustomerSspInquiryListRoute($routeCollection); |
194
|
|
|
$routeCollection = $this->addDownloadFileRoute($routeCollection); |
195
|
|
|
$routeCollection = $this->addAssetWidgetContentRoute($routeCollection); |
196
|
|
|
$routeCollection = $this->addAssetDetailsRoute($routeCollection); |
197
|
|
|
$routeCollection = $this->addAssetCreateRoute($routeCollection); |
198
|
|
|
$routeCollection = $this->addAssetUpdateRoute($routeCollection); |
199
|
|
|
$routeCollection = $this->addViewAssetImageRoute($routeCollection); |
200
|
|
|
$routeCollection = $this->addAssetListRoute($routeCollection); |
201
|
|
|
$routeCollection = $this->addUnassignBusinessUnitRoute($routeCollection); |
202
|
|
|
$routeCollection = $this->addAssetSearchRoute($routeCollection); |
203
|
|
|
$routeCollection = $this->addAssetAttachToCartItemRoute($routeCollection); |
204
|
|
|
|
205
|
|
|
return $routeCollection; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\ServicePointWidgetContentController::indexAction() |
210
|
|
|
* |
211
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
212
|
|
|
* |
213
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
214
|
|
|
*/ |
215
|
|
|
protected function addSspServicePointWidgetContentRoute(RouteCollection $routeCollection): RouteCollection |
216
|
|
|
{ |
217
|
|
|
$route = $this->buildRoute( |
218
|
|
|
static::PATTERN_SSP_SERVICE_POINT_WIDGET_CONTENT, |
219
|
|
|
'SelfServicePortal', |
220
|
|
|
'ServicePointWidgetContent', |
221
|
|
|
); |
222
|
|
|
|
223
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_SERVICE_POINT_WIDGET_CONTENT, $route); |
224
|
|
|
|
225
|
|
|
return $routeCollection; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\ServicePointSearchController::indexAction() |
230
|
|
|
* |
231
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
232
|
|
|
* |
233
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
234
|
|
|
*/ |
235
|
|
|
protected function addSspServicePointSearchRoute(RouteCollection $routeCollection): RouteCollection |
236
|
|
|
{ |
237
|
|
|
$route = $this->buildRoute( |
238
|
|
|
static::PATTERN_SSP_SERVICE_POINT_SEARCH, |
239
|
|
|
'SelfServicePortal', |
240
|
|
|
'ServicePointSearch', |
241
|
|
|
); |
242
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_SERVICE_POINT_SEARCH, $route); |
243
|
|
|
|
244
|
|
|
return $routeCollection; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\ListServiceController::listAction() |
249
|
|
|
* |
250
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
251
|
|
|
* |
252
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
253
|
|
|
*/ |
254
|
|
|
protected function addSspServiceListRoute(RouteCollection $routeCollection): RouteCollection |
255
|
|
|
{ |
256
|
|
|
$route = $this->buildRoute( |
257
|
|
|
static::PATTERN_SSP_SERVICE_LIST, |
258
|
|
|
'SelfServicePortal', |
259
|
|
|
'ListService', |
260
|
|
|
'listAction', |
261
|
|
|
); |
262
|
|
|
$route = $route->setMethods(['GET']); |
263
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_SERVICE_LIST, $route); |
264
|
|
|
|
265
|
|
|
return $routeCollection; |
266
|
|
|
} |
267
|
|
|
|
268
|
|
|
/** |
269
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\UpdateServiceTimeController::updateServiceTimeAction() |
270
|
|
|
* |
271
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
272
|
|
|
* |
273
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
274
|
|
|
*/ |
275
|
|
|
protected function addSspServiceUpdateServiceTimeRoute(RouteCollection $routeCollection): RouteCollection |
276
|
|
|
{ |
277
|
|
|
$route = $this->buildRoute( |
278
|
|
|
static::PATTERN_SSP_SERVICE_UPDATE_SERVICE_TIME, |
279
|
|
|
'SelfServicePortal', |
280
|
|
|
'UpdateServiceTime', |
281
|
|
|
'updateServiceTimeAction', |
282
|
|
|
); |
283
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_SERVICE_UPDATE_SERVICE_TIME, $route); |
284
|
|
|
|
285
|
|
|
return $routeCollection; |
286
|
|
|
} |
287
|
|
|
|
288
|
|
|
/** |
289
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\CancelServiceController::cancelServiceAction() |
290
|
|
|
* |
291
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
292
|
|
|
* |
293
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
294
|
|
|
*/ |
295
|
|
|
protected function addSspServiceCancelServiceRoute(RouteCollection $routeCollection): RouteCollection |
296
|
|
|
{ |
297
|
|
|
$route = $this->buildRoute( |
298
|
|
|
static::PATTERN_SSP_SERVICE_CANCEL_SERVICE, |
299
|
|
|
'SelfServicePortal', |
300
|
|
|
'CancelService', |
301
|
|
|
'cancelServiceAction', |
302
|
|
|
); |
303
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_SERVICE_CANCEL_SERVICE, $route); |
304
|
|
|
|
305
|
|
|
return $routeCollection; |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
/** |
309
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\ListCompanyFileController::indexAction() |
310
|
|
|
* |
311
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
312
|
|
|
* |
313
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
314
|
|
|
*/ |
315
|
|
|
protected function addSspCompanyFileListFileRoute(RouteCollection $routeCollection): RouteCollection |
316
|
|
|
{ |
317
|
|
|
$route = $this->buildRoute(static::PATTERN_SSP_COMPANY_FILE_LIST_FILE, 'SelfServicePortal', 'ListCompanyFile', 'indexAction'); |
318
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_COMPANY_FILE_LIST_FILE, $route); |
319
|
|
|
|
320
|
|
|
return $routeCollection; |
321
|
|
|
} |
322
|
|
|
|
323
|
|
|
/** |
324
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\DownloadCompanyFileController::indexAction() |
325
|
|
|
* |
326
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
327
|
|
|
* |
328
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
329
|
|
|
*/ |
330
|
|
|
protected function addSspCompanyFileDownloadRoute(RouteCollection $routeCollection): RouteCollection |
331
|
|
|
{ |
332
|
|
|
$route = $this->buildRoute(static::PATTERN_SSP_COMPANY_FILE_DOWNLOAD, 'SelfServicePortal', 'DownloadCompanyFile', 'indexAction'); |
333
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_COMPANY_FILE_DOWNLOAD, $route); |
334
|
|
|
|
335
|
|
|
return $routeCollection; |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\DashboardController::indexAction() |
340
|
|
|
* |
341
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
342
|
|
|
* |
343
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
344
|
|
|
*/ |
345
|
|
|
protected function addCustomerDashboardRoute(RouteCollection $routeCollection): RouteCollection |
346
|
|
|
{ |
347
|
|
|
$route = $this->buildGetRoute('/customer/ssp-dashboard', 'SelfServicePortal', 'Dashboard'); |
348
|
|
|
|
349
|
|
|
$routeCollection->add(static::ROUTE_NAME_DASHBOARD_INDEX, $route); |
350
|
|
|
|
351
|
|
|
return $routeCollection; |
352
|
|
|
} |
353
|
|
|
|
354
|
|
|
/** |
355
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\ListInquiryController::indexAction() |
356
|
|
|
* |
357
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
358
|
|
|
* |
359
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
360
|
|
|
*/ |
361
|
|
|
protected function addCustomerSspInquiryListRoute(RouteCollection $routeCollection): RouteCollection |
362
|
|
|
{ |
363
|
|
|
$route = $this->buildGetRoute('/customer/ssp-inquiry', 'SelfServicePortal', 'ListInquiry', 'indexAction'); |
364
|
|
|
|
365
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_INQUIRY_LIST, $route); |
366
|
|
|
|
367
|
|
|
return $routeCollection; |
368
|
|
|
} |
369
|
|
|
|
370
|
|
|
/** |
371
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\InquiryController::detailAction() |
372
|
|
|
* |
373
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
374
|
|
|
* |
375
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
376
|
|
|
*/ |
377
|
|
|
protected function addCustomerSspInquiryDetailsRoute(RouteCollection $routeCollection): RouteCollection |
378
|
|
|
{ |
379
|
|
|
$route = $this->buildGetRoute('/customer/ssp-inquiry/details', 'SelfServicePortal', 'Inquiry', 'detailAction'); |
380
|
|
|
|
381
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_INQUIRY_DETAILS, $route); |
382
|
|
|
|
383
|
|
|
return $routeCollection; |
384
|
|
|
} |
385
|
|
|
|
386
|
|
|
/** |
387
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\InquiryController::cancelAction() |
388
|
|
|
* |
389
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
390
|
|
|
* |
391
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
392
|
|
|
*/ |
393
|
|
|
protected function addSspInquiryCancelRoute(RouteCollection $routeCollection): RouteCollection |
394
|
|
|
{ |
395
|
|
|
$route = $this->buildRoute('/customer/ssp-inquiry/cancel/{sspInquiryReference}', 'SelfServicePortal', 'Inquiry', 'cancelAction'); |
396
|
|
|
$route = $route->setRequirement(static::PARAM_SSP_INQUIRY_REFERENCE, static::REFERENCE_REGEX); |
397
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_INQUIRY_CANCEL, $route); |
398
|
|
|
|
399
|
|
|
return $routeCollection; |
400
|
|
|
} |
401
|
|
|
|
402
|
|
|
/** |
403
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\InquiryController::createAction() |
404
|
|
|
* |
405
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
406
|
|
|
* |
407
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
408
|
|
|
*/ |
409
|
|
|
protected function addCustomerSspInquiryCreateRoute(RouteCollection $routeCollection): RouteCollection |
410
|
|
|
{ |
411
|
|
|
$route = $this->buildRoute('/customer/ssp-inquiry/create', 'SelfServicePortal', 'Inquiry', 'createAction'); |
412
|
|
|
|
413
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_INQUIRY, $route); |
414
|
|
|
|
415
|
|
|
return $routeCollection; |
416
|
|
|
} |
417
|
|
|
|
418
|
|
|
/** |
419
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\DownloadInquiryFileController::downloadAction() |
420
|
|
|
* |
421
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
422
|
|
|
* |
423
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
424
|
|
|
*/ |
425
|
|
|
protected function addDownloadFileRoute(RouteCollection $routeCollection): RouteCollection |
426
|
|
|
{ |
427
|
|
|
$route = $this->buildGetRoute('/customer/ssp-inquiry-file/download', 'SelfServicePortal', 'DownloadInquiryFile', 'downloadAction'); |
428
|
|
|
|
429
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_INQUIRY_FILE_DOWNLOAD, $route); |
430
|
|
|
|
431
|
|
|
return $routeCollection; |
432
|
|
|
} |
433
|
|
|
|
434
|
|
|
/** |
435
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\AssetWidgetContentController::indexAction() |
436
|
|
|
* |
437
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
438
|
|
|
* |
439
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
440
|
|
|
*/ |
441
|
|
|
protected function addAssetWidgetContentRoute(RouteCollection $routeCollection): RouteCollection |
442
|
|
|
{ |
443
|
|
|
$route = $this->buildRoute('/customer/ssp-asset/widget-content', 'SelfServicePortal', 'AssetWidgetContent', 'indexAction'); |
444
|
|
|
$routeCollection->add(static::ROUTE_SSP_ASSET_MANAGEMENT_WIDGET_CONTENT, $route); |
445
|
|
|
|
446
|
|
|
return $routeCollection; |
447
|
|
|
} |
448
|
|
|
|
449
|
|
|
/** |
450
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\AssetController::detailsAction() |
451
|
|
|
* |
452
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
453
|
|
|
* |
454
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
455
|
|
|
*/ |
456
|
|
|
protected function addAssetDetailsRoute(RouteCollection $routeCollection): RouteCollection |
457
|
|
|
{ |
458
|
|
|
$route = $this->buildRoute('customer/ssp-asset/details', 'SelfServicePortal', 'Asset', 'detailsAction'); |
459
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_DETAILS, $route); |
460
|
|
|
|
461
|
|
|
return $routeCollection; |
462
|
|
|
} |
463
|
|
|
|
464
|
|
|
/** |
465
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\AssetController::createAction() |
466
|
|
|
* |
467
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
468
|
|
|
* |
469
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
470
|
|
|
*/ |
471
|
|
|
protected function addAssetCreateRoute(RouteCollection $routeCollection): RouteCollection |
472
|
|
|
{ |
473
|
|
|
$route = $this->buildRoute('customer/ssp-asset/create', 'SelfServicePortal', 'Asset', 'createAction'); |
474
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_CREATE, $route); |
475
|
|
|
|
476
|
|
|
return $routeCollection; |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
/** |
480
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\AssetController::updateAction() |
481
|
|
|
* |
482
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
483
|
|
|
* |
484
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
485
|
|
|
*/ |
486
|
|
|
protected function addAssetUpdateRoute(RouteCollection $routeCollection): RouteCollection |
487
|
|
|
{ |
488
|
|
|
$route = $this->buildRoute('customer/ssp-asset/update', 'SelfServicePortal', 'Asset', 'updateAction'); |
489
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_UPDATE, $route); |
490
|
|
|
|
491
|
|
|
return $routeCollection; |
492
|
|
|
} |
493
|
|
|
|
494
|
|
|
/** |
495
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\DownloadAssetImageController::viewImageAction() |
496
|
|
|
* |
497
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
498
|
|
|
* |
499
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
500
|
|
|
*/ |
501
|
|
|
protected function addViewAssetImageRoute(RouteCollection $routeCollection): RouteCollection |
502
|
|
|
{ |
503
|
|
|
$route = $this->buildRoute('customer/ssp-asset/view-image', 'SelfServicePortal', 'DownloadAssetImage', 'viewImageAction'); |
504
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_VIEW_IMAGE, $route); |
505
|
|
|
|
506
|
|
|
return $routeCollection; |
507
|
|
|
} |
508
|
|
|
|
509
|
|
|
/** |
510
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\ListAssetController::indexAction() |
511
|
|
|
* |
512
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
513
|
|
|
* |
514
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
515
|
|
|
*/ |
516
|
|
|
protected function addAssetListRoute(RouteCollection $routeCollection): RouteCollection |
517
|
|
|
{ |
518
|
|
|
$route = $this->buildRoute('customer/ssp-asset', 'SelfServicePortal', 'ListAsset', 'indexAction'); |
519
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_LIST, $route); |
520
|
|
|
|
521
|
|
|
return $routeCollection; |
522
|
|
|
} |
523
|
|
|
|
524
|
|
|
/** |
525
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\AssetController::updateBusinessUnitRelationAction() |
526
|
|
|
* |
527
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
528
|
|
|
* |
529
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
530
|
|
|
*/ |
531
|
|
|
protected function addUnassignBusinessUnitRoute(RouteCollection $routeCollection): RouteCollection |
532
|
|
|
{ |
533
|
|
|
$route = $this->buildPostRoute('customer/ssp-asset/update-relations', 'SelfServicePortal', 'Asset', 'updateBusinessUnitRelationAction'); |
534
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_UPDATE_RELATIONS, $route); |
535
|
|
|
|
536
|
|
|
return $routeCollection; |
537
|
|
|
} |
538
|
|
|
|
539
|
|
|
/** |
540
|
|
|
* @uses \SprykerFeature\Yves\SelfServicePortal\Controller\AssetController::searchAction() |
541
|
|
|
* |
542
|
|
|
* @param \Spryker\Yves\Router\Route\RouteCollection $routeCollection |
543
|
|
|
* |
544
|
|
|
* @return \Spryker\Yves\Router\Route\RouteCollection |
545
|
|
|
*/ |
546
|
|
|
protected function addAssetSearchRoute(RouteCollection $routeCollection): RouteCollection |
547
|
|
|
{ |
548
|
|
|
$route = $this->buildRoute('customer/ssp-asset/search', 'SelfServicePortal', 'Asset', 'searchAction'); |
549
|
|
|
$routeCollection->add(static::ROUTE_NAME_ASSET_SEARCH, $route); |
550
|
|
|
|
551
|
|
|
return $routeCollection; |
552
|
|
|
} |
553
|
|
|
|
554
|
|
|
protected function addAssetAttachToCartItemRoute(RouteCollection $routeCollection): RouteCollection |
555
|
|
|
{ |
556
|
|
|
$route = $this->buildPostRoute('customer/ssp-asset/attach-to-cart-item', 'SelfServicePortal', 'Asset', 'attachToCartItemAction'); |
557
|
|
|
$routeCollection->add(static::ROUTE_NAME_SSP_ASSET_ATTACH_TO_CART_ITEM, $route); |
558
|
|
|
|
559
|
|
|
return $routeCollection; |
560
|
|
|
} |
561
|
|
|
} |
562
|
|
|
|