Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 576 | Rev 579 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
553 geraldo 2
 
3
declare(strict_types=1);
4
 
1 www 5
namespace LeadersLinked;
6
 
7
use Laminas\Router\Http\Literal;
8
use Laminas\Router\Http\Segment;
9
 
10
return [
11
    'navigation' => [
12
        'menu' => [
13
            [
14
                'label' => 'LABEL_HOME',
15
                'route' => 'dashboard',
16
                'class' => 'fa fa-home'
17
            ],
18
            [
19
                'label' => 'LABEL_PROFILE',
20
                'route' => 'profile',
21
                'class' => 'fa fa-home',
22
                'pages' => [
23
                    [
24
                        'label' => 'LABEL_MY_PROFILES',
25
                        'route' => 'profile/my-profiles'
26
                    ],
27
                    [
28
                        'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
29
                        'route' => 'profile/people-viewed-profile'
263 geraldo 30
                    ],
31
                    [
32
                        'label' => 'LABEL_SELF_EVALUATION',
33
                        'route' => 'profile/self-evaluation'
558 geraldo 34
                    ],
35
                    [
559 geraldo 36
                        'label' => 'LABEL_PERFORMANCE_EVALUATION',
558 geraldo 37
                        'route' => 'profile/performance-evaluation'
1 www 38
                    ]
39
                ]
40
            ],
41
            [
42
                'label' => 'LABEL_HOME',
43
                'route' => 'marketplace',
44
                'class' => 'fa fa-cubes'
45
            ],
46
            [
47
                'label' => 'LABEL_CONNECTIONS',
48
                'route' => 'connection',
49
                'class' => 'fa fa-plug',
50
                'pages' => [
51
                    [
52
                        'label' => 'LABEL_MY_CONNECTIONS',
53
                        'route' => 'connection/my-connections'
54
                    ],
55
                    [
56
                        'label' => 'LABEL_INVITATIONS_SENT',
57
                        'route' => 'connection/invitations-sent'
58
                    ],
59
                    [
60
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
61
                        'route' => 'connection/invitations-received'
62
                    ],
63
                    [
64
                        'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
65
                        'route' => 'connection/people-you-may-know'
66
                    ],
67
                    [
68
                        'label' => 'LABEL_PEOPLE_BLOCKED',
69
                        'route' => 'connection/people-blocked'
70
                    ],
71
                ]
72
            ],
73
            [
74
                'label' => 'LABEL_COMPANIES',
75
                'route' => 'company',
76
                'class' => 'fa fa-building',
77
                'pages' => [
78
                    [
79
                        'label' => 'LABEL_MY_COMPANIES',
80
                        'route' => 'company/my-companies'
81
                    ],
82
                    [
83
                        'label' => 'LABEL_COMPANIES_I_FOLLOW',
84
                        'route' => 'company/following-companies'
85
                    ],
86
                    [
87
                        'label' => 'LABEL_COMPANIES_I_WORK_WITH',
88
                        'route' => 'company/i-work-with'
89
                    ],
90
                    [
91
                        'label' => 'LABEL_REQUESTS_SENT',
92
                        'route' => 'company/requests-sent'
93
                    ],
94
                    [
95
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
96
                        'route' => 'company/invitations-received'
97
                    ]
98
                ]
99
            ],
100
            [
101
                'label' => 'LABEL_JOBS',
102
                'route' => 'job',
103
                'class' => 'fa fa-briefcase',
104
                'pages' => [
105
                    [
106
                        'label' => 'LABEL_JOBS_APPLIED',
107
                        'route' => 'job/applied-jobs'
108
                    ],
109
                    [
110
                        'label' => 'LABEL_JOBS_SAVED',
111
                        'route' => 'job/saved-jobs'
112
                    ]
113
                ]
114
            ],
115
            [
116
                'label' => 'LABEL_GROUPS',
117
                'route' => 'group',
118
                'class' => 'fa fa-cubes',
119
                'pages' => [
120
                    [
121
                        'label' => 'LABEL_MY_GROUPS',
122
                        'route' => 'group/my-groups'
123
                    ],
124
                    [
125
                        'label' => 'LABEL_JOINED_GROUPS',
126
                        'route' => 'group/joined-groups'
127
                    ],
128
                    [
129
                        'label' => 'LABEL_REQUESTS_SENT',
130
                        'route' => 'group/requests-sent'
131
                    ],
132
                    [
133
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
134
                        'route' => 'group/invitations-received'
135
                    ]
136
                ]
137
            ],
553 geraldo 138
        /* [
139
          'label' => 'LABEL_MESSAGES',
140
          'route' => 'inmail',
141
          'class' => 'fa fa-envelope',
142
          ],
143
          [
144
          'label' => 'LABEL_NOTIFICATIONS',
145
          'route' => 'dashboard',
146
          'class' => 'fa fa-bolt',
147
          ], */
1 www 148
        ],
149
        'footer' => [
150
            [
151
                'label' => 'LABEL_PRIVACY_POLICY',
152
                'route' => 'privacy-policy'
153
            ],
154
            [
155
                'label' => 'LABEL_PROFESSIONALISM_POLICY',
156
                'route' => 'professionalism-policy'
157
            ],
158
            [
159
                'label' => 'LABEL_COOKIES_POLICY',
160
                'route' => 'cookies'
161
            ],
162
            [
163
                'label' => 'LABEL_TERMS_AND_CONDITIONS',
164
                'route' => 'terms-and-conditions'
165
            ],
166
        ]
167
    ],
168
    'router' => [
169
        'routes' => [
170
            'signin' => [
171
                'type' => Literal::class,
172
                'options' => [
173
                    'route' => '/signin',
174
                    'defaults' => [
175
                        'controller' => '\LeadersLinked\Controller\AuthController',
176
                        'action' => 'signin'
177
                    ]
178
                ],
179
                'may_terminate' => true,
180
                'child_routes' => [
553 geraldo 181
                    /* 'test' => [
182
                      'type' => Literal::class,
183
                      'options' => [
184
                      'route' => '/test',
185
                      'defaults' => [
186
                      'controller' => '\LeadersLinked\Controller\AuthController',
187
                      'action' => 'test',
188
                      ],
189
                      ],
190
                      ], */
1 www 191
                    'facebook' => [
192
                        'type' => Literal::class,
193
                        'options' => [
194
                            'route' => '/facebook',
195
                            'defaults' => [
196
                                'controller' => '\LeadersLinked\Controller\AuthController',
197
                                'action' => 'facebook',
198
                            ],
199
                        ],
200
                    ],
201
                    'twitter' => [
202
                        'type' => Literal::class,
203
                        'options' => [
204
                            'route' => '/twitter',
205
                            'defaults' => [
206
                                'controller' => '\LeadersLinked\Controller\AuthController',
207
                                'action' => 'twitter',
208
                            ],
209
                        ],
210
                    ],
211
                    'google' => [
212
                        'type' => Literal::class,
213
                        'options' => [
214
                            'route' => '/google',
215
                            'defaults' => [
216
                                'controller' => '\LeadersLinked\Controller\AuthController',
217
                                'action' => 'google',
218
                            ],
219
                        ],
220
                    ],
221
                ]
222
            ],
223
            'reset-password' => [
224
                'type' => Segment::class,
225
                'options' => [
226
                    'route' => '/reset-password/:code',
227
                    'constraints' => [
228
                        'code' => '[a-zA-Z0-9--]+'
229
                    ],
230
                    'defaults' => [
231
                        'controller' => '\LeadersLinked\Controller\AuthController',
232
                        'action' => 'resetPassword'
233
                    ]
234
                ]
235
            ],
236
            'forgot-password' => [
237
                'type' => Literal::class,
238
                'options' => [
239
                    'route' => '/forgot-password',
240
                    'defaults' => [
241
                        'controller' => '\LeadersLinked\Controller\AuthController',
242
                        'action' => 'forgotPassword'
243
                    ]
244
                ]
245
            ],
246
            'signup' => [
247
                'type' => Literal::class,
248
                'options' => [
249
                    'route' => '/signup',
250
                    'defaults' => [
251
                        'controller' => '\LeadersLinked\Controller\AuthController',
252
                        'action' => 'signup'
253
                    ]
254
                ]
255
            ],
256
            'activate-account' => [
257
                'type' => Segment::class,
258
                'options' => [
259
                    'route' => '/activate-account/:code',
260
                    'constraints' => [
261
                        'code' => '[a-zA-Z0-9]+'
262
                    ],
263
                    'defaults' => [
264
                        'controller' => '\LeadersLinked\Controller\AuthController',
265
                        'action' => 'activateAccount'
266
                    ]
267
                ]
268
            ],
269
            'signout' => [
270
                'type' => Literal::class,
271
                'options' => [
272
                    'route' => '/signout',
273
                    'defaults' => [
274
                        'controller' => '\LeadersLinked\Controller\AuthController',
275
                        'action' => 'signout'
276
                    ]
277
                ]
278
            ],
210 efrain 279
            'csrf' => [
280
                'type' => Literal::class,
281
                'options' => [
282
                    'route' => '/csrf',
283
                    'defaults' => [
284
                        'controller' => '\LeadersLinked\Controller\AuthController',
285
                        'action' => 'csrf'
286
                    ]
287
                ]
288
            ],
1 www 289
            'onroom' => [
290
                'type' => Literal::class,
291
                'options' => [
292
                    'route' => '/onroom',
293
                    'defaults' => [
294
                        'controller' => '\LeadersLinked\Controller\AuthController',
295
                        'action' => 'onroom'
296
                    ]
297
                ]
298
            ],
299
            'home' => [
300
                'type' => Literal::class,
301
                'options' => [
302
                    'route' => '/',
303
                    'defaults' => [
304
                        'controller' => '\LeadersLinked\Controller\HomeController',
305
                        'action' => 'index'
306
                    ]
307
                ]
308
            ],
309
            'post' => [
310
                'type' => Segment::class,
311
                'options' => [
312
                    'route' => '/post/:id',
313
                    'constraints' => [
314
                        'id' => '[A-Za-z0-9\-]+\=*',
315
                    ],
316
                    'defaults' => [
317
                        'controller' => '\LeadersLinked\Controller\HomeController',
318
                        'action' => 'post'
319
                    ]
320
                ]
321
            ],
322
            'privacy-policy' => [
323
                'type' => Literal::class,
324
                'options' => [
325
                    'route' => '/privacy-policy',
326
                    'defaults' => [
327
                        'controller' => '\LeadersLinked\Controller\HomeController',
328
                        'action' => 'privacyPolicy'
329
                    ]
330
                ]
331
            ],
332
            'cookies' => [
333
                'type' => Literal::class,
334
                'options' => [
335
                    'route' => '/cookies',
336
                    'defaults' => [
337
                        'controller' => '\LeadersLinked\Controller\HomeController',
338
                        'action' => 'cookies'
339
                    ]
340
                ]
341
            ],
342
            'professionalism-policy' => [
343
                'type' => Literal::class,
344
                'options' => [
345
                    'route' => '/professionalism-policy',
346
                    'defaults' => [
347
                        'controller' => '\LeadersLinked\Controller\HomeController',
348
                        'action' => 'professionalismPolicy'
349
                    ]
350
                ]
351
            ],
352
            'terms-and-conditions' => [
353
                'type' => Literal::class,
354
                'options' => [
355
                    'route' => '/terms-and-conditions',
356
                    'defaults' => [
357
                        'controller' => '\LeadersLinked\Controller\HomeController',
358
                        'action' => 'termsAndConditions'
359
                    ]
360
                ]
361
            ],
362
            'check-session' => [
363
                'type' => Literal::class,
364
                'options' => [
365
                    'route' => '/check-session',
366
                    'defaults' => [
367
                        'controller' => '\LeadersLinked\Controller\HomeController',
368
                        'action' => 'checkSession'
369
                    ]
370
                ]
371
            ],
372
            'notifications' => [
373
                'type' => Literal::class,
374
                'options' => [
375
                    'route' => '/notifications',
376
                    'defaults' => [
377
                        'controller' => '\LeadersLinked\Controller\HomeController',
378
                        'action' => 'notifications'
379
                    ]
380
                ]
381
            ],
382
            'backend' => [
383
                'type' => Literal::class,
384
                'options' => [
385
                    'route' => '/backend',
386
                    'defaults' => [
387
                        'controller' => '\LeadersLinked\Controller\BackendController',
388
                        'action' => 'index'
389
                    ]
390
                ],
391
                'may_terminate' => true,
392
                'child_routes' => [
393
                    'signin-admin' => [
394
                        'type' => Literal::class,
395
                        'options' => [
396
                            'route' => '/signin-admin',
397
                            'defaults' => [
398
                                'controller' => '\LeadersLinked\Controller\BackendController',
399
                                'action' => 'signinAdmin'
400
                            ],
401
                        ],
402
                    ],
403
                    'signin-company' => [
404
                        'type' => Segment::class,
405
                        'options' => [
406
                            'route' => '/signin-company/:id',
407
                            'constraints' => [
408
                                'id' => '[A-Za-z0-9\-]+\=*',
409
                            ],
410
                            'defaults' => [
411
                                'controller' => '\LeadersLinked\Controller\BackendController',
412
                                'action' => 'signinCompany'
413
                            ],
414
                        ],
415
                    ],
553 geraldo 416
                ]
1 www 417
            ],
418
            'dashboard' => [
419
                'type' => Segment::class,
420
                'options' => [
421
                    'route' => '/dashboard[/feed/:feed]',
422
                    'constraints' => [
423
                        'feed' => '[A-Za-z0-9\-]+\=*',
424
                    ],
425
                    'defaults' => [
426
                        'controller' => '\LeadersLinked\Controller\DashboardController',
427
                        'action' => 'index'
428
                    ]
429
                ]
430
            ],
60 efrain 431
            'dashboard2' => [
1 www 432
                'type' => Segment::class,
433
                'options' => [
60 efrain 434
                    'route' => '/dashboard2',
1 www 435
                    'defaults' => [
436
                        'controller' => '\LeadersLinked\Controller\DashboardController',
60 efrain 437
                        'action' => 'dashboard2'
1 www 438
                    ]
439
                ]
440
            ],
441
            'storage' => [
442
                'type' => Segment::class,
443
                'options' => [
444
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
445
                    'constraints' => [
446
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide',
447
                        'code' => '[A-Za-z0-9\-]+\=*',
448
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
449
                    ],
450
                    // MjM5ODk0Mzgg
451
                    'defaults' => [
452
                        'controller' => '\LeadersLinked\Controller\StorageController',
453
                        'action' => 'download'
454
                    ]
455
                ]
456
            ],
457
            'paypal' => [
458
                'type' => Literal::class,
459
                'options' => [
460
                    'route' => '/paypal',
461
                    'defaults' => [
462
                        'controller' => '\LeadersLinked\Controller\PaypalController',
463
                        'action' => 'index'
464
                    ]
465
                ],
466
                'may_terminate' => true,
467
                'child_routes' => [
468
                    'success' => [
469
                        'type' => Literal::class,
470
                        'options' => [
471
                            'route' => '/success',
472
                            'defaults' => [
473
                                'controller' => '\LeadersLinked\Controller\PaypalController',
474
                                'action' => 'success',
475
                            ],
476
                        ],
477
                    ],
478
                    'cancel' => [
479
                        'type' => Literal::class,
480
                        'options' => [
481
                            'route' => '/cancel',
482
                            'defaults' => [
483
                                'controller' => '\LeadersLinked\Controller\PaypalController',
484
                                'action' => 'cancel',
485
                            ],
486
                        ],
487
                    ],
488
                ]
553 geraldo 489
            ],
1 www 490
            'chat' => [
491
                'type' => Literal::class,
492
                'options' => [
493
                    'route' => '/chat',
494
                    'defaults' => [
495
                        'controller' => '\LeadersLinked\Controller\ChatController',
496
                        'action' => 'index'
497
                    ]
498
                ],
499
                'may_terminate' => true,
500
                'child_routes' => [
501
                    // Inicio de los Routes del Chat //
553 geraldo 502
 
1 www 503
                    'heart-beat' => [
504
                        'type' => Literal::class,
505
                        'options' => [
506
                            'route' => '/heart-beat',
507
                            'defaults' => [
508
                                'controller' => '\LeadersLinked\Controller\ChatController',
509
                                'action' => 'heartBeat',
510
                            ],
511
                        ],
512
                    ],
513
                    'create-group' => [
514
                        'type' => Literal::class,
515
                        'options' => [
516
                            'route' => '/create-group',
517
                            'defaults' => [
518
                                'controller' => '\LeadersLinked\Controller\ChatController',
519
                                'action' => 'createGroup',
520
                            ],
521
                        ],
522
                    ],
523
                    'add-user-to-group' => [
524
                        'type' => Segment::class,
525
                        'options' => [
526
                            'route' => '/add-user-to-group/:group_id',
527
                            'constraints' => [
528
                                'group_id' => '[A-Za-z0-9\-]+\=*',
529
                            ],
530
                            'defaults' => [
531
                                'controller' => '\LeadersLinked\Controller\ChatController',
532
                                'action' => 'addUserToGroup',
533
                            ],
534
                        ],
535
                    ],
536
                    'mark-seen' => [
537
                        'type' => Segment::class,
538
                        'options' => [
539
                            'route' => '/mark-seen/:id',
540
                            'constraints' => [
541
                                'id' => '[A-Za-z0-9\-]+\=*',
542
                            ],
543
                            'defaults' => [
544
                                'controller' => '\LeadersLinked\Controller\ChatController',
545
                                'action' => 'markSeen',
546
                            ],
547
                        ],
548
                    ],
549
                    'mark-received' => [
550
                        'type' => Segment::class,
551
                        'options' => [
552
                            'route' => '/mark-received/:id',
553
                            'constraints' => [
554
                                'id' => '[A-Za-z0-9\-]+\=*',
555
                            ],
556
                            'defaults' => [
557
                                'controller' => '\LeadersLinked\Controller\ChatController',
558
                                'action' => 'markReceived',
559
                            ],
560
                        ],
561
                    ],
562
                    'remove-user-from-group' => [
563
                        'type' => Segment::class,
564
                        'options' => [
565
                            'route' => '/remove-user-from-group/:group_id/:user_id',
566
                            'constraints' => [
567
                                'group_id' => '[A-Za-z0-9\-]+\=*',
568
                                'user_id' => '[A-Za-z0-9\-]+\=*',
569
                            ],
570
                            'defaults' => [
571
                                'controller' => '\LeadersLinked\Controller\ChatController',
572
                                'action' => 'removeUserFromGroup',
573
                            ],
574
                        ],
575
                    ],
576
                    'get-all-messages' => [
553 geraldo 577
                        'type' => Segment::class,
1 www 578
                        'options' => [
579
                            'route' => '/get-all-messages/:id',
580
                            'constraints' => [
581
                                'id' => '[A-Za-z0-9\-]+\=*',
582
                            ],
583
                            'defaults' => [
584
                                'controller' => '\LeadersLinked\Controller\ChatController',
585
                                'action' => 'getAllMessages',
586
                            ],
587
                        ],
588
                    ],
589
                    'send' => [
553 geraldo 590
                        'type' => Segment::class,
1 www 591
                        'options' => [
592
                            'route' => '/send/:id',
593
                            'constraints' => [
594
                                'id' => '[A-Za-z0-9\-]+\=*',
595
                            ],
596
                            'defaults' => [
597
                                'controller' => '\LeadersLinked\Controller\ChatController',
598
                                'action' => 'send',
599
                            ],
600
                        ],
601
                    ],
602
                    'get-contacts-availables-for-group' => [
603
                        'type' => Segment::class,
604
                        'options' => [
605
                            'route' => '/get-contacts-availables-for-group/:group_id',
606
                            'constraints' => [
607
                                'group_id' => '[A-Za-z0-9\-]+\=*',
608
                            ],
609
                            'defaults' => [
610
                                'controller' => '\LeadersLinked\Controller\ChatController',
611
                                'action' => 'contactAvailableGroupList',
612
                            ],
613
                        ],
614
                    ],
615
                    'get-contact-group-list' => [
616
                        'type' => Segment::class,
617
                        'options' => [
618
                            'route' => '/get-contact-group-list/:group_id',
619
                            'constraints' => [
620
                                'group_id' => '[A-Za-z0-9\-]+\=*',
621
                            ],
622
                            'defaults' => [
623
                                'controller' => '\LeadersLinked\Controller\ChatController',
624
                                'action' => 'contactGroupList',
625
                            ],
626
                        ],
627
                    ],
628
                    'leave-group' => [
629
                        'type' => Segment::class,
630
                        'options' => [
631
                            'route' => '/leave-group/:group_id',
632
                            'constraints' => [
633
                                'group_id' => '[A-Za-z0-9\-]+\=*',
634
                            ],
635
                            'defaults' => [
636
                                'controller' => '\LeadersLinked\Controller\ChatController',
637
                                'action' => 'leaveGroup',
638
                            ],
639
                        ],
640
                    ],
641
                    'delete-group' => [
642
                        'type' => Segment::class,
643
                        'options' => [
644
                            'route' => '/delete-group/:group_id',
645
                            'constraints' => [
646
                                'group_id' => '[A-Za-z0-9\-]+\=*',
647
                            ],
648
                            'defaults' => [
649
                                'controller' => '\LeadersLinked\Controller\ChatController',
650
                                'action' => 'deleteGroup',
651
                            ],
652
                        ],
653
                    ],
654
                    'close' => [
655
                        'type' => Segment::class,
656
                        'options' => [
657
                            'route' => '/close/:id',
658
                            'constraints' => [
659
                                'id' => '[A-Za-z0-9\-]+\=*',
660
                            ],
661
                            'defaults' => [
662
                                'controller' => '\LeadersLinked\Controller\ChatController',
663
                                'action' => 'close',
664
                            ],
665
                        ],
666
                    ],
667
                    'clear' => [
668
                        'type' => Segment::class,
669
                        'options' => [
670
                            'route' => '/clear/:id',
671
                            'constraints' => [
672
                                'id' => '[A-Za-z0-9\-]+\=*',
673
                            ],
674
                            'defaults' => [
675
                                'controller' => '\LeadersLinked\Controller\ChatController',
676
                                'action' => 'clear',
677
                            ],
678
                        ],
679
                    ],
680
                    'upload' => [
681
                        'type' => Segment::class,
682
                        'options' => [
683
                            'route' => '/upload/:id',
684
                            'constraints' => [
685
                                'id' => '[A-Za-z0-9\-]+\=*',
686
                            ],
687
                            'defaults' => [
688
                                'controller' => '\LeadersLinked\Controller\ChatController',
689
                                'action' => 'upload',
690
                            ],
691
                        ],
692
                    ],
693
                ],
553 geraldo 694
            ],
1 www 695
            'inmail' => [
696
                'type' => Segment::class,
697
                'options' => [
698
                    'route' => '/inmail[/:id]',
699
                    'constraints' => [
700
                        'id' => '[A-Za-z0-9\-]+\=*',
701
                    ],
702
                    'defaults' => [
703
                        'controller' => '\LeadersLinked\Controller\InMailController',
704
                        'action' => 'index'
705
                    ]
706
                ],
707
                'may_terminate' => true,
708
                'child_routes' => [
709
                    'block' => [
710
                        'type' => Literal::class,
553 geraldo 711
                        'options' => [
1 www 712
                            'route' => '/block',
713
                            'defaults' => [
714
                                'controller' => '\LeadersLinked\Controller\InMailController',
715
                                'action' => 'blockConversation'
716
                            ]
553 geraldo 717
                        ]
718
                    ],
719
                    'delete' => [
720
                        'type' => Literal::class,
721
                        'options' => [
722
                            'route' => '/delete',
723
                            'defaults' => [
724
                                'controller' => '\LeadersLinked\Controller\InMailController',
725
                                'action' => 'deleteConversation'
1 www 726
                            ]
553 geraldo 727
                        ]
728
                    ],
729
                    'message' => [
730
                        'type' => Literal::class,
731
                        'options' => [
732
                            'route' => '/message',
733
                            'defaults' => [
734
                                'controller' => '\LeadersLinked\Controller\InMailController',
735
                                'action' => 'message'
736
                            ]
1 www 737
                        ],
553 geraldo 738
                        'may_terminate' => true,
739
                        'child_routes' => [
740
                            'send' => [
741
                                'type' => Segment::class,
742
                                'options' => [
743
                                    'route' => '/send[/encoding/:encoding]',
744
                                    'constraints' => [
745
                                        'encoding' => 'base64'
746
                                    ],
747
                                    'defaults' => [
748
                                        'controller' => '\LeadersLinked\Controller\InMailController',
749
                                        'action' => 'sendMessage'
750
                                    ]
1 www 751
                                ]
752
                            ],
553 geraldo 753
                            'delete' => [
754
                                'type' => Segment::class,
755
                                'options' => [
756
                                    'route' => '/delete/:message',
757
                                    'constraints' => [
758
                                        'message' => '[A-Za-z0-9\-]+\=*',
759
                                    ],
760
                                    'defaults' => [
761
                                        'controller' => '\LeadersLinked\Controller\InMailController',
762
                                        'action' => 'delete'
1 www 763
                                    ]
553 geraldo 764
                                ]
765
                            ],
766
                        ],
1 www 767
                    ],
553 geraldo 768
                ],
769
            ],
1 www 770
            'connection' => [
771
                'type' => Literal::class,
772
                'options' => [
773
                    'route' => '/connection',
774
                    'defaults' => [
775
                        'controller' => '\LeadersLinked\Controller\ConnectionController',
776
                        'action' => 'index'
777
                    ]
778
                ],
779
                'may_terminate' => true,
780
                'child_routes' => [
781
                    'my-connections' => [
782
                        'type' => Literal::class,
783
                        'options' => [
784
                            'route' => '/my-connections',
785
                            'defaults' => [
786
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
787
                                'action' => 'myConnections'
788
                            ]
789
                        ]
790
                    ],
791
                    'people-you-may-know' => [
792
                        'type' => Literal::class,
793
                        'options' => [
794
                            'route' => '/people-you-may-know',
795
                            'defaults' => [
796
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
797
                                'action' => 'peopleYouMayKnow'
798
                            ]
799
                        ]
800
                    ],
801
                    'people-blocked' => [
802
                        'type' => Literal::class,
803
                        'options' => [
804
                            'route' => '/people-blocked',
805
                            'defaults' => [
806
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
807
                                'action' => 'peopleBlocked'
808
                            ]
809
                        ],
810
                    ],
811
                    'invitations-sent' => [
812
                        'type' => Literal::class,
813
                        'options' => [
814
                            'route' => '/invitations-sent',
815
                            'defaults' => [
816
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
817
                                'action' => 'invitationsSent'
818
                            ]
819
                        ]
820
                    ],
821
                    'invitations-received' => [
822
                        'type' => Literal::class,
823
                        'options' => [
824
                            'route' => '/invitations-received',
825
                            'defaults' => [
826
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
827
                                'action' => 'invitationsReceived'
828
                            ]
829
                        ]
830
                    ],
831
                    'block' => [
832
                        'type' => Segment::class,
833
                        'options' => [
834
                            'route' => '/block/:id',
835
                            'constraints' => [
836
                                'id' => '[A-Za-z0-9\-]+\=*',
837
                            ],
838
                            'defaults' => [
839
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
840
                                'action' => 'block'
841
                            ]
842
                        ]
843
                    ],
844
                    'unblock' => [
845
                        'type' => Segment::class,
846
                        'options' => [
847
                            'route' => '/unblock/:id',
848
                            'constraints' => [
849
                                'id' => '[A-Za-z0-9\-]+\=*',
850
                            ],
851
                            'defaults' => [
852
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
853
                                'action' => 'unblock'
854
                            ]
855
                        ]
856
                    ],
857
                    'cancel' => [
858
                        'type' => Segment::class,
859
                        'options' => [
860
                            'route' => '/cancel/:id',
861
                            'constraints' => [
862
                                'id' => '[A-Za-z0-9\-]+\=*',
863
                            ],
864
                            'defaults' => [
865
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
866
                                'action' => 'cancel'
867
                            ]
868
                        ]
869
                    ],
870
                    'request' => [
871
                        'type' => Segment::class,
872
                        'options' => [
873
                            'route' => '/request/:id',
874
                            'constraints' => [
875
                                'id' => '[A-Za-z0-9\-]+\=*',
876
                            ],
877
                            'defaults' => [
878
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
879
                                'action' => 'request'
880
                            ]
881
                        ]
882
                    ],
883
                    'approve' => [
884
                        'type' => Segment::class,
885
                        'options' => [
886
                            'route' => '/approve/:id',
887
                            'constraints' => [
888
                                'id' => '[A-Za-z0-9\-]+\=*',
889
                            ],
890
                            'defaults' => [
891
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
892
                                'action' => 'approve'
893
                            ]
894
                        ]
895
                    ],
896
                    'reject' => [
897
                        'type' => Segment::class,
898
                        'options' => [
899
                            'route' => '/reject/:id',
900
                            'constraints' => [
901
                                'id' => '[A-Za-z0-9\-]+\=*',
902
                            ],
903
                            'defaults' => [
904
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
905
                                'action' => 'reject'
906
                            ]
907
                        ]
908
                    ],
909
                    'delete' => [
910
                        'type' => Segment::class,
911
                        'options' => [
912
                            'route' => '/delete/:id',
913
                            'constraints' => [
914
                                'id' => '[A-Za-z0-9\-]+\=*',
915
                            ],
916
                            'defaults' => [
917
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
918
                                'action' => 'delete'
919
                            ]
920
                        ]
921
                    ],
922
                ]
553 geraldo 923
            ],
1 www 924
            'feed' => [
925
                'type' => Literal::class,
926
                'options' => [
927
                    'route' => '/feed',
928
                    'defaults' => [
929
                        'controller' => '\LeadersLinked\Controller\FeedController',
930
                        'action' => 'index'
931
                    ]
932
                ],
933
                'may_terminate' => true,
934
                'child_routes' => [
935
                    'timeline' => [
936
                        'type' => Segment::class,
937
                        'options' => [
938
                            'route' => '/timeline/:id/:type[/feed/:feed]',
939
                            'constraints' => [
940
                                'id' => '[A-Za-z0-9\-]+\=*',
941
                                'type' => 'user|company|group',
942
                                'feed' => '[A-Za-z0-9\-]+\=*',
943
                            ],
944
                            'defaults' => [
945
                                'controller' => '\LeadersLinked\Controller\FeedController',
946
                                'action' => 'timeline'
947
                            ]
948
                        ]
949
                    ],
950
                    'delete' => [
951
                        'type' => Segment::class,
952
                        'options' => [
953
                            'route' => '/delete/:id',
954
                            'constraints' => [
955
                                'id' => '[A-Za-z0-9\-]+\=*',
956
                            ],
957
                            'defaults' => [
958
                                'controller' => '\LeadersLinked\Controller\FeedController',
959
                                'action' => 'delete'
960
                            ],
961
                        ]
962
                    ],
963
                    'comment' => [
964
                        'type' => Segment::class,
965
                        'options' => [
966
                            'route' => '/comment/:id',
967
                            'constraints' => [
968
                                'id' => '[A-Za-z0-9\-]+\=*',
969
                            ],
970
                            'defaults' => [
971
                                'controller' => '\LeadersLinked\Controller\FeedController',
972
                                'action' => 'comment'
973
                            ],
974
                        ],
975
                        'may_terminate' => true,
976
                        'child_routes' => [
977
                            'delete' => [
978
                                'type' => Segment::class,
979
                                'options' => [
980
                                    'route' => '/delete/:comment',
981
                                    'constraints' => [
982
                                        'comment' => '[A-Za-z0-9\-]+\=*',
983
                                    ],
984
                                    'defaults' => [
985
                                        'controller' => '\LeadersLinked\Controller\FeedController',
986
                                        'action' => 'commentDelete'
987
                                    ]
988
                                ]
989
                            ],
990
                        ]
991
                    ],
992
                    'share' => [
993
                        'type' => Segment::class,
994
                        'options' => [
995
                            'route' => '/share/:id[/company/:company_id][/group/:group_id][/encoding/:encoding]',
996
                            'constraints' => [
997
                                'id' => '[A-Za-z0-9\-]+\=*',
998
                                'company_id' => '[A-Za-z0-9\-]+\=*',
999
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1000
                                'encoding' => 'base64'
1001
                            ],
1002
                            'defaults' => [
1003
                                'controller' => '\LeadersLinked\Controller\FeedController',
1004
                                'action' => 'share'
1005
                            ]
1006
                        ]
1007
                    ],
1008
                    'like' => [
1009
                        'type' => Segment::class,
1010
                        'options' => [
1011
                            'route' => '/like/:id',
1012
                            'constraints' => [
1013
                                'id' => '[A-Za-z0-9\-]+\=*',
1014
                            ],
1015
                            'defaults' => [
1016
                                'controller' => '\LeadersLinked\Controller\FeedController',
1017
                                'action' => 'like'
1018
                            ]
1019
                        ]
1020
                    ],
1021
                    'unlike' => [
1022
                        'type' => Segment::class,
1023
                        'options' => [
1024
                            'route' => '/unlike/:id',
1025
                            'constraints' => [
1026
                                'id' => '[A-Za-z0-9\-]+\=*',
1027
                            ],
1028
                            'defaults' => [
1029
                                'controller' => '\LeadersLinked\Controller\FeedController',
1030
                                'action' => 'unlike'
1031
                            ]
1032
                        ]
1033
                    ],
1034
                    'add' => [
1035
                        'type' => Segment::class,
1036
                        'options' => [
1037
                            'route' => '/add[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1038
                            'constraints' => [
1039
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1040
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1041
                                'encoding' => 'base64'
1042
                            ],
1043
                            'defaults' => [
1044
                                'controller' => '\LeadersLinked\Controller\FeedController',
1045
                                'action' => 'add'
1046
                            ]
1047
                        ]
1048
                    ],
1049
                ],
553 geraldo 1050
            ],
1 www 1051
            'job' => [
1052
                'type' => Literal::class,
1053
                'options' => [
1054
                    'route' => '/job',
1055
                    'defaults' => [
1056
                        'controller' => '\LeadersLinked\Controller\JobController',
1057
                        'action' => 'index'
1058
                    ]
1059
                ],
1060
                'may_terminate' => true,
1061
                'child_routes' => [
1062
                    'view' => [
1063
                        'type' => Segment::class,
1064
                        'options' => [
1065
                            'route' => '/view/:id',
1066
                            'constraints' => [
1067
                                'id' => '[A-Za-z0-9\-]+\=*'
1068
                            ],
1069
                            'defaults' => [
1070
                                'controller' => '\LeadersLinked\Controller\JobController',
1071
                                'action' => 'view'
1072
                            ]
1073
                        ]
1074
                    ],
1075
                    'apply-job' => [
1076
                        'type' => Segment::class,
1077
                        'options' => [
1078
                            'route' => '/apply-job/:id',
1079
                            'constraints' => [
1080
                                'id' => '[A-Za-z0-9\-]+\=*'
1081
                            ],
1082
                            'defaults' => [
1083
                                'controller' => '\LeadersLinked\Controller\JobController',
1084
                                'action' => 'applyJob'
1085
                            ]
1086
                        ]
1087
                    ],
1088
                    'remove-apply-job' => [
1089
                        'type' => Segment::class,
1090
                        'options' => [
1091
                            'route' => '/remove-apply-job/:id',
1092
                            'constraints' => [
1093
                                'id' => '[A-Za-z0-9\-]+\=*'
1094
                            ],
1095
                            'defaults' => [
1096
                                'controller' => '\LeadersLinked\Controller\JobController',
1097
                                'action' => 'removeApplyJob'
1098
                            ]
1099
                        ]
1100
                    ],
1101
                    'save-job' => [
1102
                        'type' => Segment::class,
1103
                        'options' => [
1104
                            'route' => '/save-job/:id',
1105
                            'constraints' => [
1106
                                'id' => '[A-Za-z0-9\-]+\=*'
1107
                            ],
1108
                            'defaults' => [
1109
                                'controller' => '\LeadersLinked\Controller\JobController',
1110
                                'action' => 'saveJob'
1111
                            ]
1112
                        ]
1113
                    ],
1114
                    'remove-save-job' => [
1115
                        'type' => Segment::class,
1116
                        'options' => [
1117
                            'route' => '/remove-save-job/:id',
1118
                            'constraints' => [
1119
                                'id' => '[A-Za-z0-9\-]+\=*'
1120
                            ],
1121
                            'defaults' => [
1122
                                'controller' => '\LeadersLinked\Controller\JobController',
1123
                                'action' => 'removeSaveJob'
1124
                            ]
1125
                        ]
1126
                    ],
1127
                    'applied-jobs' => [
1128
                        'type' => Literal::class,
1129
                        'options' => [
1130
                            'route' => '/applied-jobs',
1131
                            'defaults' => [
1132
                                'controller' => '\LeadersLinked\Controller\JobController',
1133
                                'action' => 'appliedJobs'
1134
                            ]
1135
                        ]
1136
                    ],
1137
                    'saved-jobs' => [
1138
                        'type' => Literal::class,
1139
                        'options' => [
1140
                            'route' => '/saved-jobs',
1141
                            'defaults' => [
1142
                                'controller' => '\LeadersLinked\Controller\JobController',
1143
                                'action' => 'savedJobs'
1144
                            ]
1145
                        ]
1146
                    ],
553 geraldo 1147
                ]
1 www 1148
            ],
1149
            /*
553 geraldo 1150
              'job' => [
1151
              'type' => Literal::class,
1152
              'options' => [
1153
              'route' => '/job',
1154
              'defaults' => [
1155
              'controller' => '\LeadersLinked\Controller\JobController',
1156
              'action' => 'index'
1157
              ]
1158
              ],
1159
              'may_terminate' => true,
1160
              'child_routes' => [
1161
              'view' => [
1162
              'type' => Segment::class,
1163
              'options' => [
1164
              'route' => '/view/:id',
1165
              'constraints' => [
1166
              'id' => '[A-Za-z0-9\-]+\=*'
1167
              ],
1168
              'defaults' => [
1169
              'controller' => '\LeadersLinked\Controller\CompanyController',
1170
              'action' => 'job'
1171
              ]
1172
              ]
1173
              ],
1174
              ]
1175
              ],
1 www 1176
             */
1177
            'search' => [
1178
                'type' => Segment::class,
1179
                'options' => [
1180
                    'route' => '/search[/entity/:entity]',
1181
                    'constraints' => [
1182
                        'entity' => 'user|company|group|job'
1183
                    ],
1184
                    'defaults' => [
1185
                        'controller' => '\LeadersLinked\Controller\SearchController',
1186
                        'action' => 'index'
1187
                    ]
1188
                ],
1189
            ],
1190
            'group' => [
1191
                'type' => Literal::class,
1192
                'options' => [
1193
                    'route' => '/group',
1194
                    'defaults' => [
1195
                        'controller' => '\LeadersLinked\GroupController',
1196
                        'action' => 'index'
1197
                    ]
1198
                ],
1199
                'may_terminate' => true,
1200
                'child_routes' => [
1201
                    'view' => [
1202
                        'type' => Segment::class,
1203
                        'options' => [
1204
                            'route' => '/view/:id',
1205
                            'constraints' => [
1206
                                'id' => '[A-Za-z0-9\-]+\=*'
1207
                            ],
1208
                            'defaults' => [
1209
                                'controller' => '\LeadersLinked\Controller\GroupController',
1210
                                'action' => 'view'
1211
                            ]
1212
                        ]
1213
                    ],
1214
                    'request' => [
1215
                        'type' => Segment::class,
1216
                        'options' => [
1217
                            'route' => '/request/:id',
1218
                            'constraints' => [
1219
                                'id' => '[A-Za-z0-9\-]+\=*'
1220
                            ],
1221
                            'defaults' => [
1222
                                'controller' => '\LeadersLinked\Controller\GroupController',
1223
                                'action' => 'request'
1224
                            ]
1225
                        ]
1226
                    ],
1227
                    'leave' => [
1228
                        'type' => Segment::class,
1229
                        'options' => [
1230
                            'route' => '/leave/:id',
1231
                            'constraints' => [
1232
                                'id' => '[A-Za-z0-9\-]+\=*'
1233
                            ],
1234
                            'defaults' => [
1235
                                'controller' => '\LeadersLinked\Controller\GroupController',
1236
                                'action' => 'leave'
1237
                            ]
1238
                        ]
1239
                    ],
1240
                    'accept' => [
1241
                        'type' => Segment::class,
1242
                        'options' => [
1243
                            'route' => '/accept/:id',
1244
                            'constraints' => [
1245
                                'id' => '[A-Za-z0-9\-]+\=*'
1246
                            ],
1247
                            'defaults' => [
1248
                                'controller' => '\LeadersLinked\Controller\GroupController',
1249
                                'action' => 'accept'
1250
                            ]
1251
                        ]
1252
                    ],
1253
                    'cancel' => [
1254
                        'type' => Segment::class,
1255
                        'options' => [
1256
                            'route' => '/cancel/:id',
1257
                            'constraints' => [
1258
                                'id' => '[A-Za-z0-9\-]+\=*'
1259
                            ],
1260
                            'defaults' => [
1261
                                'controller' => '\LeadersLinked\Controller\GroupController',
1262
                                'action' => 'cancel'
1263
                            ]
1264
                        ]
1265
                    ],
1266
                    'reject' => [
1267
                        'type' => Segment::class,
1268
                        'options' => [
1269
                            'route' => '/reject/:id',
1270
                            'constraints' => [
1271
                                'id' => '[A-Za-z0-9\-]+\=*'
1272
                            ],
1273
                            'defaults' => [
1274
                                'controller' => '\LeadersLinked\Controller\GroupController',
1275
                                'action' => 'reject'
1276
                            ]
1277
                        ]
1278
                    ],
1279
                    'joined-groups' => [
1280
                        'type' => Literal::class,
1281
                        'options' => [
1282
                            'route' => '/joined-groups',
1283
                            'defaults' => [
1284
                                'controller' => '\LeadersLinked\Controller\GroupController',
1285
                                'action' => 'joinedGroups'
1286
                            ]
1287
                        ],
1288
                    ],
1289
                    'requests-sent' => [
1290
                        'type' => Literal::class,
1291
                        'options' => [
1292
                            'route' => '/requests-sent',
1293
                            'defaults' => [
1294
                                'controller' => '\LeadersLinked\Controller\GroupController',
1295
                                'action' => 'requestsSent'
1296
                            ]
1297
                        ],
1298
                    ],
1299
                    'invitations-received' => [
1300
                        'type' => Literal::class,
1301
                        'options' => [
1302
                            'route' => '/invitations-received',
1303
                            'defaults' => [
1304
                                'controller' => '\LeadersLinked\Controller\GroupController',
1305
                                'action' => 'invitationsReceived'
1306
                            ]
1307
                        ],
1308
                    ],
1309
                    'my-groups' => [
1310
                        'type' => Literal::class,
1311
                        'options' => [
1312
                            'route' => '/my-groups',
1313
                            'defaults' => [
1314
                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1315
                                'action' => 'index'
1316
                            ]
1317
                        ],
1318
                        'may_terminate' => true,
1319
                        'child_routes' => [
1320
                            'add' => [
1321
                                'type' => Literal::class,
1322
                                'options' => [
1323
                                    'route' => '/add',
1324
                                    'defaults' => [
1325
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1326
                                        'action' => 'add'
1327
                                    ]
1328
                                ]
1329
                            ],
1330
                            'edit' => [
1331
                                'type' => Segment::class,
1332
                                'options' => [
1333
                                    'route' => '/edit/:id',
1334
                                    'constraints' => [
1335
                                        'id' => '[A-Za-z0-9\-]+\=*'
1336
                                    ],
1337
                                    'defaults' => [
1338
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1339
                                        'action' => 'edit'
1340
                                    ]
1341
                                ]
1342
                            ],
1343
                            'delete' => [
1344
                                'type' => Segment::class,
1345
                                'options' => [
1346
                                    'route' => '/delete/:id',
1347
                                    'constraints' => [
1348
                                        'id' => '[A-Za-z0-9\-]+\=*'
1349
                                    ],
1350
                                    'defaults' => [
1351
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1352
                                        'action' => 'delete'
1353
                                    ]
1354
                                ]
1355
                            ],
1356
                            'extended' => [
1357
                                'type' => Segment::class,
1358
                                'options' => [
1359
                                    'route' => '/extended/:id',
1360
                                    'constraints' => [
1361
                                        'id' => '[A-Za-z0-9\-]+\=*'
1362
                                    ],
1363
                                    'defaults' => [
1364
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1365
                                        'action' => 'extended'
1366
                                    ]
1367
                                ]
1368
                            ],
1369
                            'image' => [
1370
                                'type' => Segment::class,
1371
                                'options' => [
1372
                                    'route' => '/image/:id/operation/:operation',
1373
                                    'constraints' => [
1374
                                        'id' => '[A-Za-z0-9\-]+\=*',
1375
                                        'operation' => 'upload|delete'
1376
                                    ],
1377
                                    'defaults' => [
1378
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1379
                                        'action' => 'image'
1380
                                    ]
1381
                                ]
1382
                            ],
1383
                            'cover' => [
1384
                                'type' => Segment::class,
1385
                                'options' => [
1386
                                    'route' => '/cover/:id/operation/:operation',
1387
                                    'constraints' => [
1388
                                        'id' => '[A-Za-z0-9\-]+\=*',
1389
                                        'operation' => 'upload|delete'
1390
                                    ],
1391
                                    'defaults' => [
1392
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1393
                                        'action' => 'cover'
1394
                                    ]
1395
                                ]
1396
                            ],
1397
                            'privacy' => [
1398
                                'type' => Segment::class,
1399
                                'options' => [
1400
                                    'route' => '/privacy/:id',
1401
                                    'constraints' => [
1402
                                        'id' => '[A-Za-z0-9\-]+\=*'
1403
                                    ],
1404
                                    'defaults' => [
1405
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1406
                                        'action' => 'privacy'
1407
                                    ]
1408
                                ]
1409
                            ],
1410
                            'website' => [
1411
                                'type' => Segment::class,
1412
                                'options' => [
1413
                                    'route' => '/website/:id',
1414
                                    'constraints' => [
1415
                                        'id' => '[A-Za-z0-9\-]+\=*'
1416
                                    ],
1417
                                    'defaults' => [
1418
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1419
                                        'action' => 'website'
1420
                                    ]
1421
                                ]
1422
                            ],
1423
                            'industry' => [
1424
                                'type' => Segment::class,
1425
                                'options' => [
1426
                                    'route' => '/industry/:id',
1427
                                    'constraints' => [
1428
                                        'id' => '[A-Za-z0-9\-]+\=*'
1429
                                    ],
1430
                                    'defaults' => [
1431
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1432
                                        'action' => 'industry'
1433
                                    ]
1434
                                ]
1435
                            ],
1436
                            'accessibility' => [
1437
                                'type' => Segment::class,
1438
                                'options' => [
1439
                                    'route' => '/accessibility/:id',
1440
                                    'constraints' => [
1441
                                        'id' => '[A-Za-z0-9\-]+\=*'
1442
                                    ],
1443
                                    'defaults' => [
1444
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1445
                                        'action' => 'accessibility'
1446
                                    ]
1447
                                ]
1448
                            ],
1449
                            'type' => [
1450
                                'type' => Segment::class,
1451
                                'options' => [
1452
                                    'route' => '/type/:id',
1453
                                    'constraints' => [
1454
                                        'id' => '[A-Za-z0-9\-]+\=*'
1455
                                    ],
1456
                                    'defaults' => [
1457
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1458
                                        'action' => 'type'
1459
                                    ]
1460
                                ]
1461
                            ],
1462
                            'status' => [
1463
                                'type' => Segment::class,
1464
                                'options' => [
1465
                                    'route' => '/status/:id',
1466
                                    'constraints' => [
1467
                                        'id' => '[A-Za-z0-9\-]+\=*'
1468
                                    ],
1469
                                    'defaults' => [
1470
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1471
                                        'action' => 'status'
1472
                                    ]
1473
                                ]
1474
                            ],
1475
                            'members' => [
1476
                                'type' => Segment::class,
1477
                                'options' => [
1478
                                    'route' => '/members/:id',
1479
                                    'constraints' => [
1480
                                        'id' => '[A-Za-z0-9\-]+\=*'
1481
                                    ],
1482
                                    'defaults' => [
1483
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1484
                                        'action' => 'members'
1485
                                    ]
1486
                                ],
1487
                                'may_terminate' => true,
1488
                                'child_routes' => [
1489
                                    'invite' => [
1490
                                        'type' => Segment::class,
1491
                                        'options' => [
1492
                                            'route' => '/invite/:user_id',
1493
                                            'constraints' => [
1494
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1495
                                            ],
1496
                                            'defaults' => [
1497
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1498
                                                'action' => 'invite'
1499
                                            ]
1500
                                        ]
1501
                                    ],
1502
                                    'approve' => [
1503
                                        'type' => Segment::class,
1504
                                        'options' => [
1505
                                            'route' => '/approve/:user_id',
1506
                                            'constraints' => [
1507
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1508
                                            ],
1509
                                            'defaults' => [
1510
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1511
                                                'action' => 'approve'
1512
                                            ]
1513
                                        ]
1514
                                    ],
1515
                                    'reject' => [
1516
                                        'type' => Segment::class,
1517
                                        'options' => [
1518
                                            'route' => '/reject/:user_id',
1519
                                            'constraints' => [
1520
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1521
                                            ],
1522
                                            'defaults' => [
1523
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1524
                                                'action' => 'reject'
1525
                                            ]
1526
                                        ]
1527
                                    ],
1528
                                    'cancel' => [
1529
                                        'type' => Segment::class,
1530
                                        'options' => [
1531
                                            'route' => '/cancel/:user_id',
1532
                                            'constraints' => [
1533
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1534
                                            ],
1535
                                            'defaults' => [
1536
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1537
                                                'action' => 'cancel'
1538
                                            ]
1539
                                        ]
1540
                                    ],
553 geraldo 1541
                                ]
1 www 1542
                            ],
1543
                        ]
1544
                    ]
1545
                ]
1546
            ],
1547
            'profile' => [
1548
                'type' => Literal::class,
1549
                'options' => [
1550
                    'route' => '/profile',
1551
                    'defaults' => [
1552
                        'controller' => '\LeadersLinked\ControllerProfileController',
1553
                        'action' => 'index'
1554
                    ]
1555
                ],
1556
                'may_terminate' => true,
1557
                'child_routes' => [
1558
                    'microlearning' => [
1559
                        'type' => Literal::class,
1560
                        'options' => [
1561
                            'route' => '/microlearning',
1562
                            'defaults' => [
1563
                                'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1564
                                'action' => 'index'
1565
                            ]
1566
                        ],
1567
                        'may_terminate' => true,
1568
                        'child_routes' => [
1569
                            'timeline' => [
1570
                                'type' => Literal::class,
1571
                                'options' => [
1572
                                    'route' => '/timeline',
1573
                                    'defaults' => [
1574
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1575
                                        'action' => 'timeline'
1576
                                    ]
1577
                                ]
1578
                            ],
1579
                            'progress' => [
1580
                                'type' => Literal::class,
1581
                                'options' => [
1582
                                    'route' => '/progress',
1583
                                    'defaults' => [
1584
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1585
                                        'action' => 'progress'
1586
                                    ]
1587
                                ]
1588
                            ],
1589
                        ]
1590
                    ],
1591
                    'people-viewed-profile' => [
1592
                        'type' => Literal::class,
1593
                        'options' => [
1594
                            'route' => '/people-viewed-profile',
1595
                            'defaults' => [
1596
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1597
                                'action' => 'peopleViewedProfile'
1598
                            ]
1599
                        ]
1600
                    ],
263 geraldo 1601
                    'self-evaluation' => [
1602
                        'type' => Literal::class,
1603
                        'options' => [
1604
                            'route' => '/self-evaluation',
1605
                            'defaults' => [
271 geraldo 1606
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
263 geraldo 1607
                                'action' => 'index'
1608
                            ]
1609
                        ],
1610
                        'may_terminate' => true,
1611
                        'child_routes' => [
1612
                            'take-a-test' => [
575 geraldo 1613
                                'type' => Literal::class,
263 geraldo 1614
                                'options' => [
281 efrain 1615
                                    'route' => '/take-a-test/:id',
1616
                                    'constraints' => [
1617
                                        'id' => '[A-Za-z0-9\-]+\=*'
1618
                                    ],
263 geraldo 1619
                                    'defaults' => [
271 geraldo 1620
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
281 efrain 1621
                                        'action' => 'takeaTest'
263 geraldo 1622
                                    ]
1623
                                ]
1624
                            ],
483 geraldo 1625
                            'report' => [
575 geraldo 1626
                                'type' => Literal::class,
263 geraldo 1627
                                'options' => [
483 geraldo 1628
                                    'route' => '/report/:id',
281 efrain 1629
                                    'constraints' => [
1630
                                        'id' => '[A-Za-z0-9\-]+\=*'
1631
                                    ],
263 geraldo 1632
                                    'defaults' => [
271 geraldo 1633
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
281 efrain 1634
                                        'action' => 'report'
263 geraldo 1635
                                    ]
1636
                                ]
1637
                            ],
1638
                        ]
1639
                    ],
553 geraldo 1640
                    'performance-evaluation' => [
1641
                        'type' => Literal::class,
1642
                        'options' => [
1643
                            'route' => '/performance-evaluation',
1644
                            'defaults' => [
556 geraldo 1645
                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
553 geraldo 1646
                                'action' => 'index'
1647
                            ]
1648
                        ],
1649
                        'may_terminate' => true,
1650
                        'child_routes' => [
1651
                            'take-a-test' => [
1652
                                'type' => Literal::class,
1653
                                'options' => [
1654
                                    'route' => '/take-a-test/:id',
1655
                                    'constraints' => [
1656
                                        'id' => '[A-Za-z0-9\-]+\=*'
1657
                                    ],
1658
                                    'defaults' => [
578 geraldo 1659
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1660
                                        'action' => 'takeaTest'
1661
                                    ]
1662
                                ]
1663
                            ],
1664
                            'report' => [
1665
                                'type' => Literal::class,
1666
                                'options' => [
1667
                                    'route' => '/report/:id',
1668
                                    'constraints' => [
1669
                                        'id' => '[A-Za-z0-9\-]+\=*'
1670
                                    ],
1671
                                    'defaults' => [
1672
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1673
                                        'action' => 'report'
1674
                                    ]
1675
                                ]
1676
                            ],
1677
                        ]
1678
                    ],
575 geraldo 1679
                    'view' => [
1680
                        'type' => Segment::class,
1681
                        'options' => [
1682
                            'route' => '/view/:id',
1683
                            'constraints' => [
1684
                                'id' => '[A-Za-z0-9\-]+\=*'
1685
                            ],
1686
                            'defaults' => [
1687
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1688
                                'action' => 'view'
1689
                            ]
1690
                        ]
1691
                    ],
578 geraldo 1692
                    'self-evaluation' => [
1693
                        'type' => Literal::class,
1694
                        'options' => [
1695
                            'route' => '/self-evaluation',
1696
                            'defaults' => [
1697
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
1698
                                'action' => 'index'
1699
                            ]
1700
                        ],
1701
                        'may_terminate' => true,
1702
                        'child_routes' => [
1703
                            'take-a-test' => [
1704
                                'type' => Segment::class,
1705
                                'options' => [
1706
                                    'route' => '/take-a-test/:id',
1707
                                    'constraints' => [
1708
                                        'id' => '[A-Za-z0-9\-]+\=*'
1709
                                    ],
1710
                                    'defaults' => [
1711
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
1712
                                        'action' => 'takeaTest'
1713
                                    ]
1714
                                ]
1715
                            ],
1716
                            'report' => [
1717
                                'type' => Segment::class,
1718
                                'options' => [
1719
                                    'route' => '/report/:id',
1720
                                    'constraints' => [
1721
                                        'id' => '[A-Za-z0-9\-]+\=*'
1722
                                    ],
1723
                                    'defaults' => [
1724
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
1725
                                        'action' => 'report'
1726
                                    ]
1727
                                ]
1728
                            ],
1729
                        ]
1730
                    ],
1 www 1731
                    'my-profiles' => [
1732
                        'type' => Literal::class,
1733
                        'options' => [
1734
                            'route' => '/my-profiles',
1735
                            'defaults' => [
1736
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
1737
                                'action' => 'index'
1738
                            ]
1739
                        ],
1740
                        'may_terminate' => true,
1741
                        'child_routes' => [
1742
                            'add' => [
1743
                                'type' => Literal::class,
1744
                                'options' => [
1745
                                    'route' => '/add',
1746
                                    'defaults' => [
1747
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1748
                                        'action' => 'add'
1749
                                    ]
1750
                                ]
1751
                            ],
1752
                            'edit' => [
1753
                                'type' => Segment::class,
1754
                                'options' => [
1755
                                    'route' => '/edit/:id',
1756
                                    'constraints' => [
1757
                                        'id' => '[A-Za-z0-9\-]+\=*'
1758
                                    ],
1759
                                    'defaults' => [
1760
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1761
                                        'action' => 'edit'
1762
                                    ]
1763
                                ]
1764
                            ],
1765
                            'delete' => [
1766
                                'type' => Segment::class,
1767
                                'options' => [
1768
                                    'route' => '/delete/:id',
1769
                                    'constraints' => [
1770
                                        'id' => '[A-Za-z0-9\-]+\=*'
1771
                                    ],
1772
                                    'defaults' => [
1773
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1774
                                        'action' => 'delete'
1775
                                    ]
1776
                                ]
1777
                            ],
1778
                            'extended' => [
1779
                                'type' => Segment::class,
1780
                                'options' => [
1781
                                    'route' => '/extended/:id',
1782
                                    'constraints' => [
1783
                                        'id' => '[A-Za-z0-9\-]+\=*'
1784
                                    ],
1785
                                    'defaults' => [
1786
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1787
                                        'action' => 'extended'
1788
                                    ]
1789
                                ]
1790
                            ],
1791
                            'image' => [
1792
                                'type' => Segment::class,
1793
                                'options' => [
1794
                                    'route' => '/image/:id/operation/:operation',
1795
                                    'constraints' => [
1796
                                        'id' => '[A-Za-z0-9\-]+\=*',
1797
                                        'operation' => 'upload|delete'
1798
                                    ],
1799
                                    'defaults' => [
1800
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1801
                                        'action' => 'image'
1802
                                    ]
1803
                                ]
1804
                            ],
1805
                            'cover' => [
1806
                                'type' => Segment::class,
1807
                                'options' => [
1808
                                    'route' => '/cover/:id/operation/:operation',
1809
                                    'constraints' => [
1810
                                        'id' => '[A-Za-z0-9\-]+\=*',
1811
                                        'operation' => 'upload|delete'
1812
                                    ],
1813
                                    'defaults' => [
1814
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1815
                                        'action' => 'cover'
1816
                                    ]
1817
                                ]
1818
                            ],
1819
                            'experience' => [
1820
                                'type' => Segment::class,
1821
                                'options' => [
1822
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
1823
                                    'constraints' => [
1824
                                        'id' => '[A-Za-z0-9\-]+\=*',
1825
                                        'operation' => 'add|edit|delete',
1826
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1827
                                    ],
1828
                                    'defaults' => [
1829
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1830
                                        'action' => 'experience'
1831
                                    ]
1832
                                ]
1833
                            ],
1834
                            'education' => [
1835
                                'type' => Segment::class,
1836
                                'options' => [
1837
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
1838
                                    'constraints' => [
1839
                                        'id' => '[A-Za-z0-9\-]+\=*',
1840
                                        'operation' => 'add|edit|delete',
1841
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1842
                                    ],
1843
                                    'defaults' => [
1844
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1845
                                        'action' => 'education'
1846
                                    ]
1847
                                ]
1848
                            ],
1849
                            'language' => [
1850
                                'type' => Segment::class,
1851
                                'options' => [
1852
                                    'route' => '/language/:id',
1853
                                    'constraints' => [
1854
                                        'id' => '[A-Za-z0-9\-]+\=*'
1855
                                    ],
1856
                                    'defaults' => [
1857
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1858
                                        'action' => 'language'
1859
                                    ]
1860
                                ]
1861
                            ],
1862
                            'location' => [
1863
                                'type' => Segment::class,
1864
                                'options' => [
1865
                                    'route' => '/location/:id',
1866
                                    'constraints' => [
1867
                                        'id' => '[A-Za-z0-9\-]+\=*'
1868
                                    ],
1869
                                    'defaults' => [
1870
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1871
                                        'action' => 'location'
1872
                                    ]
1873
                                ]
1874
                            ],
1875
                            'skill' => [
1876
                                'type' => Segment::class,
1877
                                'options' => [
1878
                                    'route' => '/skill/:id',
1879
                                    'constraints' => [
1880
                                        'id' => '[A-Za-z0-9\-]+\=*'
1881
                                    ],
1882
                                    'defaults' => [
1883
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1884
                                        'action' => 'skill'
1885
                                    ]
1886
                                ]
1887
                            ],
1888
                            'social-network' => [
1889
                                'type' => Segment::class,
1890
                                'options' => [
1891
                                    'route' => '/social-network/:id',
1892
                                    'constraints' => [
1893
                                        'id' => '[A-Za-z0-9\-]+\=*'
1894
                                    ],
1895
                                    'defaults' => [
1896
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1897
                                        'action' => 'socialNetwork'
1898
                                    ]
1899
                                ]
1900
                            ]
1901
                        ]
1902
                    ]
1903
                ]
1904
            ],
1905
            'company' => [
1906
                'type' => Literal::class,
1907
                'options' => [
1908
                    'route' => '/company',
1909
                    'defaults' => [
1910
                        'controller' => '\LeadersLinked\Controller\CompanyController',
1911
                        'action' => 'index'
1912
                    ]
1913
                ],
1914
                'may_terminate' => true,
1915
                'child_routes' => [
1916
                    'view' => [
1917
                        'type' => Segment::class,
1918
                        'options' => [
1919
                            'route' => '/view/:id',
1920
                            'constraints' => [
1921
                                'id' => '[A-Za-z0-9\-]+\=*'
1922
                            ],
1923
                            'defaults' => [
1924
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1925
                                'action' => 'view'
1926
                            ]
1927
                        ]
1928
                    ],
1929
                    'follow' => [
1930
                        'type' => Segment::class,
1931
                        'options' => [
1932
                            'route' => '/follow/:id',
1933
                            'constraints' => [
1934
                                'id' => '[A-Za-z0-9\-]+\=*'
1935
                            ],
1936
                            'defaults' => [
1937
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1938
                                'action' => 'follow'
1939
                            ]
1940
                        ]
1941
                    ],
1942
                    'unfollow' => [
1943
                        'type' => Segment::class,
1944
                        'options' => [
1945
                            'route' => '/unfollow/:id',
1946
                            'constraints' => [
1947
                                'id' => '[A-Za-z0-9\-]+\=*'
1948
                            ],
1949
                            'defaults' => [
1950
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1951
                                'action' => 'unfollow'
1952
                            ]
1953
                        ]
1954
                    ],
1955
                    'request' => [
1956
                        'type' => Segment::class,
1957
                        'options' => [
1958
                            'route' => '/request/:id',
1959
                            'constraints' => [
1960
                                'id' => '[A-Za-z0-9\-]+\=*'
1961
                            ],
1962
                            'defaults' => [
1963
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1964
                                'action' => 'request'
1965
                            ]
1966
                        ]
1967
                    ],
1968
                    'accept' => [
1969
                        'type' => Segment::class,
1970
                        'options' => [
1971
                            'route' => '/accept/:id',
1972
                            'constraints' => [
1973
                                'id' => '[A-Za-z0-9\-]+\=*'
1974
                            ],
1975
                            'defaults' => [
1976
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1977
                                'action' => 'accept'
1978
                            ]
1979
                        ]
1980
                    ],
1981
                    'cancel' => [
1982
                        'type' => Segment::class,
1983
                        'options' => [
1984
                            'route' => '/cancel/:id',
1985
                            'constraints' => [
1986
                                'id' => '[A-Za-z0-9\-]+\=*'
1987
                            ],
1988
                            'defaults' => [
1989
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1990
                                'action' => 'cancel'
1991
                            ]
1992
                        ]
1993
                    ],
1994
                    'reject' => [
1995
                        'type' => Segment::class,
1996
                        'options' => [
1997
                            'route' => '/reject/:id',
1998
                            'constraints' => [
1999
                                'id' => '[A-Za-z0-9\-]+\=*'
2000
                            ],
2001
                            'defaults' => [
2002
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2003
                                'action' => 'reject'
2004
                            ]
2005
                        ]
2006
                    ],
2007
                    'leave' => [
2008
                        'type' => Segment::class,
2009
                        'options' => [
2010
                            'route' => '/leave/:id',
2011
                            'constraints' => [
2012
                                'id' => '[A-Za-z0-9\-]+\=*'
2013
                            ],
2014
                            'defaults' => [
2015
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2016
                                'action' => 'leave'
2017
                            ]
2018
                        ]
2019
                    ],
2020
                    'following-companies' => [
2021
                        'type' => Literal::class,
2022
                        'options' => [
2023
                            'route' => '/following-companies',
2024
                            'defaults' => [
2025
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2026
                                'action' => 'followingCompanies'
2027
                            ]
2028
                        ],
2029
                    ],
2030
                    'requests-sent' => [
2031
                        'type' => Literal::class,
2032
                        'options' => [
2033
                            'route' => '/requests-sent',
2034
                            'defaults' => [
2035
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2036
                                'action' => 'requestsSent'
2037
                            ]
2038
                        ],
2039
                        'may_terminate' => true,
2040
                    ],
2041
                    'invitations-received' => [
2042
                        'type' => Literal::class,
2043
                        'options' => [
2044
                            'route' => '/invitations-received',
2045
                            'defaults' => [
2046
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2047
                                'action' => 'invitationsReceived'
2048
                            ]
2049
                        ],
2050
                        'may_terminate' => true,
2051
                    ],
2052
                    'i-work-with' => [
2053
                        'type' => Literal::class,
2054
                        'options' => [
2055
                            'route' => '/i-work-with',
2056
                            'defaults' => [
2057
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2058
                                'action' => 'iWorkWith'
2059
                            ]
2060
                        ],
2061
                        'may_terminate' => true,
2062
                    ],
2063
                    'my-companies' => [
2064
                        'type' => Literal::class,
2065
                        'options' => [
2066
                            'route' => '/my-companies',
2067
                            'defaults' => [
2068
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2069
                                'action' => 'index'
2070
                            ]
2071
                        ],
2072
                        'may_terminate' => true,
2073
                        'child_routes' => [
2074
                            'add' => [
2075
                                'type' => Literal::class,
2076
                                'options' => [
2077
                                    'route' => '/add',
2078
                                    'defaults' => [
2079
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2080
                                        'action' => 'add'
2081
                                    ]
2082
                                ]
2083
                            ],
2084
                        ]
2085
                    ],
2086
                ]
2087
            ],
2088
            'account-settings' => [
2089
                'type' => Literal::class,
2090
                'options' => [
2091
                    'route' => '/account-settings',
2092
                    'defaults' => [
2093
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2094
                        'action' => 'index'
2095
                    ]
2096
                ],
2097
                'may_terminate' => true,
2098
                'child_routes' => [
2099
                    'image' => [
2100
                        'type' => Segment::class,
2101
                        'options' => [
2102
                            'route' => '/image/:operation',
2103
                            'cconstraints' => [
2104
                                'operation' => 'upload|delete'
2105
                            ],
2106
                            'defaults' => [
2107
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2108
                                'action' => 'image',
2109
                                'operation' => 'upload'
2110
                            ]
2111
                        ]
2112
                    ],
2113
                    'deactivate' => [
2114
                        'type' => Literal::class,
2115
                        'options' => [
2116
                            'route' => '/deactivate',
2117
                            'defaults' => [
2118
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2119
                                'action' => 'deactivate'
2120
                            ]
2121
                        ]
2122
                    ],
2123
                    'notifications' => [
2124
                        'type' => Literal::class,
2125
                        'options' => [
2126
                            'route' => '/notification',
2127
                            'defaults' => [
2128
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2129
                                'action' => 'notification'
2130
                            ]
2131
                        ]
2132
                    ],
2133
                    'password' => [
2134
                        'type' => Literal::class,
2135
                        'options' => [
2136
                            'route' => '/password',
2137
                            'defaults' => [
2138
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2139
                                'action' => 'password'
2140
                            ]
2141
                        ]
2142
                    ],
2143
                    'add-facebook' => [
2144
                        'type' => Literal::class,
2145
                        'options' => [
2146
                            'route' => '/add-facebook',
2147
                            'defaults' => [
2148
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2149
                                'action' => 'addFacebook'
2150
                            ]
2151
                        ]
2152
                    ],
2153
                    'remove-facebook' => [
2154
                        'type' => Literal::class,
2155
                        'options' => [
2156
                            'route' => '/remove-facebook',
2157
                            'defaults' => [
2158
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2159
                                'action' => 'removeFacebook'
2160
                            ]
2161
                        ]
2162
                    ],
2163
                    'add-twitter' => [
2164
                        'type' => Literal::class,
2165
                        'options' => [
2166
                            'route' => '/add-twitter',
2167
                            'defaults' => [
2168
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2169
                                'action' => 'addTwitter'
2170
                            ]
2171
                        ]
2172
                    ],
2173
                    'remove-twitter' => [
2174
                        'type' => Literal::class,
2175
                        'options' => [
2176
                            'route' => '/remove-twitter',
2177
                            'defaults' => [
2178
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2179
                                'action' => 'removeTwitter'
2180
                            ]
2181
                        ]
2182
                    ],
2183
                    'add-google' => [
2184
                        'type' => Literal::class,
2185
                        'options' => [
2186
                            'route' => '/add-google',
2187
                            'defaults' => [
2188
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2189
                                'action' => 'addGoogle'
2190
                            ]
2191
                        ]
2192
                    ],
2193
                    'remove-google' => [
2194
                        'type' => Literal::class,
2195
                        'options' => [
2196
                            'route' => '/remove-google',
2197
                            'defaults' => [
2198
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2199
                                'action' => 'removeGoogle'
2200
                            ]
2201
                        ]
2202
                    ],
2203
                    'location' => [
2204
                        'type' => Literal::class,
2205
                        'options' => [
2206
                            'route' => '/location',
2207
                            'defaults' => [
2208
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2209
                                'action' => 'location'
2210
                            ]
2211
                        ]
2212
                    ],
2213
                    'privacy' => [
2214
                        'type' => Literal::class,
2215
                        'options' => [
2216
                            'route' => '/privacy',
2217
                            'defaults' => [
2218
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2219
                                'action' => 'privacy'
2220
                            ]
2221
                        ]
2222
                    ],
2223
                    'basic' => [
2224
                        'type' => Literal::class,
2225
                        'options' => [
2226
                            'route' => '/basic',
2227
                            'defaults' => [
2228
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2229
                                'action' => 'basic'
2230
                            ]
2231
                        ]
2232
                    ],
2233
                    'transactions' => [
2234
                        'type' => Literal::class,
2235
                        'options' => [
2236
                            'route' => '/transactions',
2237
                            'defaults' => [
2238
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2239
                                'action' => 'transactions'
2240
                            ]
2241
                        ],
2242
                        'may_terminate' => true,
2243
                        'child_routes' => [
2244
                            'add-funds' => [
2245
                                'type' => Literal::class,
2246
                                'options' => [
2247
                                    'route' => '/add-funds',
2248
                                    'defaults' => [
2249
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2250
                                        'action' => 'addFund'
2251
                                    ]
2252
                                ]
2253
                            ],
2254
                        ]
2255
                    ],
2256
                    'browsers' => [
2257
                        'type' => Literal::class,
2258
                        'options' => [
2259
                            'route' => '/browsers',
2260
                            'defaults' => [
2261
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2262
                                'action' => 'browsers'
2263
                            ]
2264
                        ]
2265
                    ],
2266
                    'ips' => [
2267
                        'type' => Literal::class,
2268
                        'options' => [
2269
                            'route' => '/ips',
2270
                            'defaults' => [
2271
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2272
                                'action' => 'ips'
2273
                            ]
2274
                        ]
2275
                    ],
2276
                    'devices' => [
2277
                        'type' => Literal::class,
2278
                        'options' => [
2279
                            'route' => '/devices',
2280
                            'defaults' => [
2281
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2282
                                'action' => 'devices'
2283
                            ]
2284
                        ]
2285
                    ]
2286
                ],
2287
                'may_terminate' => true
2288
            ],
2289
            'moodle' => [
2290
                'type' => Literal::class,
2291
                'options' => [
2292
                    'route' => '/moodle',
2293
                    'defaults' => [
2294
                        'controller' => '\LeadersLinked\Controller\MoodleController',
2295
                        'action' => 'index'
2296
                    ]
2297
                ],
2298
                'may_terminate' => true
2299
            ],
2300
            'oauth' => [
2301
                'type' => Literal::class,
2302
                'options' => [
2303
                    'route' => '/oauth',
2304
                    'defaults' => [
2305
                        'controller' => '\LeadersLinked\Controller\OauthController',
2306
                        'action' => 'index'
2307
                    ]
2308
                ],
2309
                'may_terminate' => true,
2310
                'child_routes' => [
2311
                    'facebook' => [
2312
                        'type' => Literal::class,
2313
                        'options' => [
2314
                            'route' => '/facebook',
2315
                            'defaults' => [
2316
                                'controller' => '\LeadersLinked\Controller\OauthController',
2317
                                'action' => 'facebook'
2318
                            ]
2319
                        ],
2320
                        'may_terminate' => true,
2321
                        'child_routes' => [
2322
                            'delete' => [
2323
                                'type' => Literal::class,
2324
                                'options' => [
2325
                                    'route' => '/delete',
2326
                                    'defaults' => [
2327
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2328
                                        'action' => 'facebookDelete'
2329
                                    ]
2330
                                ],
2331
                                'may_terminate' => true,
2332
                            ],
2333
                            'cancel' => [
2334
                                'type' => Literal::class,
2335
                                'options' => [
2336
                                    'route' => '/cancel',
2337
                                    'defaults' => [
2338
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2339
                                        'action' => 'facebookCancel'
2340
                                    ]
2341
                                ],
2342
                                'may_terminate' => true,
2343
                            ],
553 geraldo 2344
                        ],
1 www 2345
                    ],
2346
                    'twitter' => [
2347
                        'type' => Literal::class,
2348
                        'options' => [
2349
                            'route' => '/twitter',
2350
                            'defaults' => [
2351
                                'controller' => '\LeadersLinked\Controller\OauthController',
2352
                                'action' => 'twitter'
2353
                            ]
2354
                        ],
2355
                        'may_terminate' => true,
2356
                    ],
2357
                    'google' => [
2358
                        'type' => Literal::class,
2359
                        'options' => [
2360
                            'route' => '/google',
2361
                            'defaults' => [
2362
                                'controller' => '\LeadersLinked\Controller\OauthController',
2363
                                'action' => 'google'
2364
                            ]
2365
                        ],
2366
                        'may_terminate' => true,
2367
                    ],
553 geraldo 2368
                /* 'facebook' => [
2369
                  'type' => Literal::class,
2370
                  'options' => [
2371
                  'route' => '/facebook',
2372
                  'defaults' => [
2373
                  'controller' => '\LeadersLinked\Controller\OauthController',
2374
                  'action' => 'facebook'
2375
                  ]
2376
                  ],
2377
                  'may_terminate' => true,
2378
                  'child_routes' => [
2379
                  'cancel' => [
2380
                  'type' => Literal::class,
2381
                  'options' => [
2382
                  'route' => '/cancel',
2383
                  'defaults' => [
2384
                  'controller' => '\LeadersLinked\Controller\OauthController',
2385
                  'action' => 'facebookCancel'
2386
                  ]
2387
                  ]
2388
                  ],
2389
                  'delete' => [
2390
                  'type' => Literal::class,
2391
                  'options' => [
2392
                  'route' => '/delete',
2393
                  'defaults' => [
2394
                  'controller' => '\LeadersLinked\Controller\OauthController',
2395
                  'action' => 'facebookDelete'
2396
                  ]
2397
                  ]
2398
                  ]
2399
                  ]
2400
                  ] */
1 www 2401
                ]
2402
            ],
2403
            'helpers' => [
2404
                'type' => Literal::class,
2405
                'options' => [
2406
                    'route' => '/helpers',
2407
                    'defaults' => [
2408
                        'controller' => '\LeadersLinked\Controller\HelperController',
2409
                        'action' => 'index'
2410
                    ]
2411
                ],
2412
                'may_terminate' => true,
2413
                'child_routes' => [
2414
                    'search-people' => [
2415
                        'type' => Literal::class,
2416
                        'options' => [
2417
                            'route' => '/search-people',
2418
                            'defaults' => [
2419
                                'controller' => '\LeadersLinked\Controller\HelperController',
2420
                                'action' => 'searchPeople'
2421
                            ]
2422
                        ]
2423
                    ],
2424
                    'company-suggestion' => [
2425
                        'type' => Segment::class,
2426
                        'options' => [
2427
                            'route' => '/company-suggestion/:company_id',
2428
                            'constraints' => [
2429
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2430
                            ],
2431
                            'defaults' => [
2432
                                'controller' => '\LeadersLinked\Controller\HelperController',
2433
                                'action' => 'companySuggestion'
2434
                            ]
2435
                        ]
2436
                    ],
2437
                    'posts' => [
2438
                        'type' => Literal::class,
2439
                        'options' => [
2440
                            'route' => '/posts',
2441
                            'defaults' => [
2442
                                'controller' => '\LeadersLinked\Controller\HelperController',
2443
                                'action' => 'posts'
2444
                            ]
2445
                        ]
2446
                    ],
2447
                    'people-you-may-know' => [
2448
                        'type' => Literal::class,
2449
                        'options' => [
2450
                            'route' => '/people-you-may-know',
2451
                            'defaults' => [
2452
                                'controller' => '\LeadersLinked\Controller\HelperController',
2453
                                'action' => 'peopleYouMayKnow'
2454
                            ]
2455
                        ]
2456
                    ],
2457
                    'people-viewed-profile' => [
2458
                        'type' => Segment::class,
2459
                        'options' => [
2460
                            'route' => '/people-viewed-profile/:user_profile_id',
2461
                            'constraints' => [
2462
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
2463
                            ],
2464
                            'defaults' => [
2465
                                'controller' => '\LeadersLinked\Controller\HelperController',
2466
                                'action' => 'peopleViewedProfile'
2467
                            ]
2468
                        ]
2469
                    ],
2470
                    'company-follower' => [
2471
                        'type' => Segment::class,
2472
                        'options' => [
2473
                            'route' => '/company-follower/:company_id',
2474
                            'constraints' => [
2475
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2476
                            ],
2477
                            'defaults' => [
2478
                                'controller' => '\LeadersLinked\Controller\HelperController',
2479
                                'action' => 'companyFollower'
2480
                            ]
2481
                        ]
2482
                    ],
2483
                    'group-members' => [
2484
                        'type' => Segment::class,
2485
                        'options' => [
2486
                            'route' => '/group-members/:group_id',
2487
                            'constraints' => [
2488
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2489
                            ],
2490
                            'defaults' => [
2491
                                'controller' => '\LeadersLinked\Controller\HelperController',
2492
                                'action' => 'groupMembers'
2493
                            ]
2494
                        ],
2495
                        'may_terminate' => true,
2496
                        'child_routes' => [
2497
                            'invite' => [
2498
                                'type' => Literal::class,
2499
                                'options' => [
2500
                                    'route' => '/invite',
2501
                                    'defaults' => [
2502
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2503
                                        'action' => 'groupMemberInvite'
2504
                                    ]
2505
                                ]
2506
                            ],
2507
                            'reject' => [
2508
                                'type' => Segment::class,
2509
                                'options' => [
2510
                                    'route' => '/reject/:user_id',
2511
                                    'constraints' => [
2512
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2513
                                    ],
2514
                                    'defaults' => [
2515
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2516
                                        'action' => 'groupMemberReject'
2517
                                    ]
2518
                                ]
2519
                            ],
2520
                            'cancel' => [
2521
                                'type' => Segment::class,
2522
                                'options' => [
2523
                                    'route' => '/cancel/:user_id',
2524
                                    'constraints' => [
2525
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2526
                                    ],
2527
                                    'defaults' => [
2528
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2529
                                        'action' => 'groupMemberCancel'
2530
                                    ]
2531
                                ]
2532
                            ],
2533
                            'approve' => [
2534
                                'type' => Segment::class,
2535
                                'options' => [
2536
                                    'route' => '/approve/:user_id',
2537
                                    'constraints' => [
2538
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2539
                                    ],
2540
                                    'defaults' => [
2541
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2542
                                        'action' => 'groupMemberApprove'
2543
                                    ]
2544
                                ]
2545
                            ],
553 geraldo 2546
                        ]
1 www 2547
                    ],
2548
                    'groups-suggestion' => [
2549
                        'type' => Segment::class,
2550
                        'options' => [
2551
                            'route' => '/groups-suggestion/:group_id',
2552
                            'constraints' => [
2553
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2554
                            ],
2555
                            'defaults' => [
2556
                                'controller' => '\LeadersLinked\Controller\HelperController',
2557
                                'action' => 'groupsSuggestion'
2558
                            ]
2559
                        ]
2560
                    ],
2561
                ]
2562
            ],
2563
            'help' => [
2564
                'type' => Literal::class,
2565
                'options' => [
2566
                    'route' => '/help',
2567
                    'defaults' => [
2568
                        'controller' => '\LeadersLinked\Controller\HelpController',
2569
                        'action' => 'send'
2570
                    ]
2571
                ],
2572
                'may_terminate' => true,
553 geraldo 2573
            ],
1 www 2574
            'services' => [
2575
                'type' => Literal::class,
2576
                'options' => [
2577
                    'route' => '/services',
2578
                    'defaults' => [
2579
                        'controller' => '\LeadersLinked\Controller\ServiceController',
2580
                        'action' => 'index'
2581
                    ]
2582
                ],
2583
                'may_terminate' => true,
2584
                'child_routes' => [
2585
                    'storage' => [
2586
                        'type' => Segment::class,
2587
                        'options' => [
2588
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
2589
                            'constraints' => [
2590
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
2591
                                'code' => '[A-Za-z0-9\-]+\=*',
2592
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
2593
                            ],
2594
                            // MjM5ODk0Mzgg
2595
                            'defaults' => [
2596
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2597
                                'action' => 'storage'
2598
                            ]
2599
                        ]
2600
                    ],
2601
                    'device' => [
2602
                        'type' => Literal::class,
2603
                        'options' => [
2604
                            'route' => '/device',
2605
                            'defaults' => [
2606
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2607
                                'action' => 'device'
2608
                            ]
2609
                        ]
2610
                    ],
2611
                    'fcm' => [
2612
                        'type' => Literal::class,
2613
                        'options' => [
2614
                            'route' => '/fcm',
2615
                            'defaults' => [
2616
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2617
                                'action' => 'fcm'
2618
                            ]
2619
                        ]
2620
                    ],
2621
                    'signin' => [
2622
                        'type' => Literal::class,
2623
                        'options' => [
2624
                            'route' => '/signin',
2625
                            'defaults' => [
2626
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2627
                                'action' => 'signin'
2628
                            ]
2629
                        ]
2630
                    ],
2631
                    'check-session' => [
2632
                        'type' => Literal::class,
2633
                        'options' => [
2634
                            'route' => '/check-session',
2635
                            'defaults' => [
2636
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2637
                                'action' => 'checkSession'
2638
                            ]
2639
                        ]
2640
                    ],
2641
                    'signout' => [
2642
                        'type' => Literal::class,
2643
                        'options' => [
2644
                            'route' => '/signout',
2645
                            'defaults' => [
2646
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2647
                                'action' => 'signout'
2648
                            ]
2649
                        ]
2650
                    ],
553 geraldo 2651
                    /* 'signup' => [
2652
                      'type' => Literal::class,
2653
                      'options' => [
2654
                      'route' => '/signup',
2655
                      'defaults' => [
2656
                      'controller' => '\LeadersLinked\Controller\ServiceController',
2657
                      'action' => 'signup'
2658
                      ]
2659
                      ]
2660
                      ],
2661
                      'activate-account' => [
2662
                      'type' => Literal::class,
2663
                      'options' => [
2664
                      'route' => '/activate-account',
2665
                      'defaults' => [
2666
                      'controller' => '\LeadersLinked\Controller\ServiceController',
2667
                      'action' => 'activateAccount'
2668
                      ]
2669
                      ]
2670
                      ],
2671
                      'forgot-password' => [
2672
                      'type' => Literal::class,
2673
                      'options' => [
2674
                      'route' => '/forgot-password',
2675
                      'defaults' => [
2676
                      'controller' => '\LeadersLinked\Controller\ServiceController',
2677
                      'action' => 'forgotPassword'
2678
                      ]
2679
                      ]
2680
                      ],
2681
                      'reset-password' => [
2682
                      'type' => Literal::class,
2683
                      'options' => [
2684
                      'route' => '/reset-password',
2685
                      'defaults' => [
2686
                      'controller' => '\LeadersLinked\Controller\ServiceController',
2687
                      'action' => 'resetPassword'
2688
                      ]
2689
                      ]
2690
                      ], */
1 www 2691
                    'sync' => [
2692
                        'type' => Literal::class,
2693
                        'options' => [
2694
                            'route' => '/sync',
2695
                            'defaults' => [
2696
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2697
                                'action' => 'sync'
2698
                            ]
2699
                        ]
2700
                    ],
2701
                    'sync-batch' => [
2702
                        'type' => Literal::class,
2703
                        'options' => [
2704
                            'route' => '/sync-batch',
2705
                            'defaults' => [
2706
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2707
                                'action' => 'syncBatch'
2708
                            ]
2709
                        ]
2710
                    ],
2711
                    'microlearning' => [
2712
                        'type' => Literal::class,
2713
                        'options' => [
2714
                            'route' => '/microlearning',
2715
                            'defaults' => [
2716
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
2717
                                'action' => 'index'
2718
                            ]
2719
                        ],
2720
                        'may_terminate' => true,
2721
                        'child_routes' => [
2722
                            'refresh' => [
2723
                                'type' => Literal::class,
2724
                                'options' => [
2725
                                    'route' => '/refresh',
2726
                                    'defaults' => [
2727
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2728
                                        'action' => 'microlearningRefresh'
2729
                                    ]
2730
                                ]
2731
                            ],
2732
                            'check-changes' => [
2733
                                'type' => Literal::class,
2734
                                'options' => [
2735
                                    'route' => '/check-changes',
2736
                                    'defaults' => [
2737
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2738
                                        'action' => 'microlearningCheckChanges'
2739
                                    ]
2740
                                ]
2741
                            ],
280 efrain 2742
                            'capsules' => [
2743
                                'type' => Literal::class,
2744
                                'options' => [
2745
                                    'route' => '/capsules',
2746
                                    'defaults' => [
2747
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2748
                                        'action' => 'microlearningCapsules'
2749
                                    ]
2750
                                ],
2751
                                'may_terminate' => true,
2752
                                'child_routes' => [
2753
                                    'comments' => [
553 geraldo 2754
                                        'type' => Segment::class,
280 efrain 2755
                                        'options' => [
2756
                                            'route' => '/comments/:capsule_id',
2757
                                            'constraints' => [
2758
                                                'capsule_id' => '[A-Za-z0-9\-]+\=*'
2759
                                            ],
2760
                                            'defaults' => [
2761
                                                'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2762
                                                'action' => 'index'
2763
                                            ]
2764
                                        ],
2765
                                        'may_terminate' => true,
2766
                                        'child_routes' => [
2767
                                            'add' => [
2768
                                                'type' => Literal::class,
2769
                                                'options' => [
2770
                                                    'route' => '/add',
2771
                                                    'defaults' => [
2772
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2773
                                                        'action' => 'add'
2774
                                                    ]
2775
                                                ]
2776
                                            ],
2777
                                            'get' => [
2778
                                                'type' => Segment::class,
2779
                                                'options' => [
2780
                                                    'route' => '/get/:comment_id',
2781
                                                    'constraints' => [
2782
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
2783
                                                    ],
2784
                                                    'defaults' => [
2785
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2786
                                                        'action' => 'get'
2787
                                                    ]
2788
                                                ]
2789
                                            ],
2790
                                            'delete' => [
2791
                                                'type' => Segment::class,
2792
                                                'options' => [
2793
                                                    'route' => '/delete/:comment_id',
2794
                                                    'constraints' => [
2795
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
2796
                                                    ],
2797
                                                    'defaults' => [
2798
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2799
                                                        'action' => 'delete'
2800
                                                    ]
2801
                                                ]
2802
                                            ],
2803
                                        ]
2804
                                    ],
553 geraldo 2805
                                ]
280 efrain 2806
                            ],
2807
                            'services/microlearning/capsules',
2808
                            'services/microlearning/capsules/comments',
2809
                            'services/microlearning/capsules/comments/get',
2810
                            'services/microlearning/capsules/comments/add',
2811
                            'services/microlearning/capsules/comments/delete',
553 geraldo 2812
                        ]
1 www 2813
                    ],
2814
                ]
2815
            ],
2816
            'marketplace' => [
2817
                'type' => Literal::class,
2818
                'options' => [
2819
                    'route' => '/marketplace',
2820
                    'defaults' => [
2821
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2822
                        'action' => 'index'
2823
                    ]
2824
                ],
2825
                'may_terminate' => true,
2826
                'child_routes' => [
2827
                    'categories' => [
2828
                        'type' => Segment::class,
2829
                        'options' => [
2830
                            'route' => '/categories',
2831
                            'defaults' => [
2832
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2833
                                'action' => 'getCategories'
2834
                            ]
2835
                        ]
2836
                    ],
2837
                    'enroll' => [
2838
                        'type' => Segment::class,
2839
                        'options' => [
2840
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
2841
                            'constraints' => [
2842
                                'company_id' => '[A-Za-z0-9\-]+\=*',
2843
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
2844
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
2845
                            ],
2846
                            'defaults' => [
2847
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2848
                                'action' => 'enroll'
2849
                            ]
2850
                        ]
2851
                    ],
2852
                ]
553 geraldo 2853
            ],
1 www 2854
        ]
2855
    ],
2856
    'controllers' => [
2857
        'factories' => [
2858
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
2859
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
2860
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
2861
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
2862
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
2863
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
2864
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
2865
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
2866
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
2867
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
2868
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
2869
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
2870
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
2871
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,
2872
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
2873
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
2874
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
2875
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
2876
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
2877
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
2878
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
2879
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
272 geraldo 2880
            \LeadersLinked\Controller\SelfEvaluationController::class => \LeadersLinked\Factory\Controller\SelfEvaluationControllerFactory::class,
559 geraldo 2881
            \LeadersLinked\Controller\PerformanceEvaluationController::class => \LeadersLinked\Factory\Controller\PerformanceEvaluationControllerFactory::class,
1 www 2882
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,
2883
            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
2884
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
2885
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,
2886
        ],
2887
        'aliases' => [
2888
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
2889
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
2890
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
2891
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
2892
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,
2893
            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
2894
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
2895
            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
2896
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
2897
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
2898
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
553 geraldo 2899
            '\LeadersLinked\Controller\InMailController' => \LeadersLinked\Controller\InMailController::class,
1 www 2900
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
2901
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
2902
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
2903
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,
2904
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
2905
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
2906
            '\LeadersLinked\Controller\ProfileMicrolearningController' => \LeadersLinked\Controller\ProfileMicrolearningController::class,
2907
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
2908
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
2909
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
2910
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
2911
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
2912
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
2913
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,
273 geraldo 2914
            '\LeadersLinked\Controller\SelfEvaluationController' => \LeadersLinked\Controller\SelfEvaluationController::class,
559 geraldo 2915
            '\LeadersLinked\Controller\PerformanceEvaluationController' => \LeadersLinked\Controller\PerformanceEvaluationController::class,
1 www 2916
        ]
2917
    ],
2918
    'laminas-cli' => [
2919
        'commands' => [
2920
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
2921
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
2922
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
2923
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
2924
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
242 efrain 2925
            'check-preview-poster-for-feed' => \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class,
1 www 2926
        ]
2927
    ],
2928
    'service_manager' => [
2929
        'abstract_factories' => [
2930
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
2931
        ],
2932
        'factories' => [
2933
            'RenderingStrategy' => function ($container) {
2934
                $translator = $container->get('MvcTranslator');
2935
                return new \LeadersLinked\View\RenderingStrategy($translator);
2936
            },
2937
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
2938
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,
2939
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
2940
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
2941
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
2942
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
2943
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
242 efrain 2944
            \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class => \LeadersLinked\Factory\Command\CheckPreviewPosterForFeedCommandFactory::class,
1 www 2945
        ],
553 geraldo 2946
        'aliases' => [// 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
1 www 2947
        ]
2948
    ],
2949
    'view_helpers' => [
2950
        'factories' => [
2951
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
2952
            \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
2953
            \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
2954
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
2955
            \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
2956
            \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
2957
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
2958
            \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
2959
            \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
2960
            \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
2961
        ],
2962
        'invokables' => [
2963
            'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
2964
            'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
2965
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
2966
        ],
2967
        'aliases' => [
2968
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
2969
            'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
2970
            'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
2971
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
2972
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
2973
            'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
2974
            'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
2975
            'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
2976
            'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
2977
        ]
2978
    ],
2979
    'controller_plugins' => [
2980
        'invokables' => [],
2981
        'factories' => [
2982
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class
2983
        ],
2984
        'aliases' => [
2985
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class
2986
        ]
2987
    ],
2988
    'view_manager' => [
2989
        'display_not_found_reason' => true,
2990
        'display_exceptions' => true,
2991
        'doctype' => 'HTML5',
2992
        'not_found_template' => 'error/404',
2993
        'exception_template' => 'error/index',
2994
        'template_map' => [
2995
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
2996
            'error/404' => __DIR__ . '/../view/error/404.phtml',
2997
            'error/index' => __DIR__ . '/../view/error/index.phtml'
2998
        ],
2999
        'template_path_stack' => [
3000
            __DIR__ . '/../view'
3001
        ],
3002
        'strategies' => [
3003
            'ViewJsonStrategy',
3004
            'RenderingStrategy'
3005
        ]
3006
    ]
3007
];
3008