Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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