Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 279 | Rev 281 | 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' => [
1677
                                    'route' => '/take-a-test',
1678
                                    'defaults' => [
271 geraldo 1679
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
263 geraldo 1680
                                        'action' => 'index'
1681
                                    ]
1682
                                ]
1683
                            ],
265 geraldo 1684
                            'reports' => [
263 geraldo 1685
                                'type' => Literal::class,
1686
                                'options' => [
265 geraldo 1687
                                    'route' => '/reports',
263 geraldo 1688
                                    'defaults' => [
271 geraldo 1689
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
265 geraldo 1690
                                        'action' => 'index'
263 geraldo 1691
                                    ]
1692
                                ]
1693
                            ],
1694
 
1695
                        ]
1696
                    ],
1697
 
1698
 
1 www 1699
                    'view' => [
1700
                        'type' => Segment::class,
1701
                        'options' => [
1702
                            'route' => '/view/:id',
1703
                            'constraints' => [
1704
                                'id' => '[A-Za-z0-9\-]+\=*'
1705
                            ],
1706
                            'defaults' => [
1707
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1708
                                'action' => 'view'
1709
                            ]
1710
                        ]
1711
                    ],
279 efrain 1712
                    'self-evaluation' => [
1713
                        'type' => Literal::class,
1714
                        'options' => [
1715
                            'route' => '/self-evaluation',
1716
                            'defaults' => [
1717
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
1718
                                'action' => 'index'
1719
                            ]
1720
                        ],
1721
                        'may_terminate' => true,
1722
                        'child_routes' => [
1723
                            'take-a-test' => [
1724
                                'type' => Segment::class,
1725
                                'options' => [
1726
                                    'route' => '/take-a-test/:id',
1727
                                    'constraints' => [
1728
                                        'id' => '[A-Za-z0-9\-]+\=*'
1729
                                    ],
1730
                                    'defaults' => [
1731
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
1732
                                        'action' => 'takeaTest'
1733
                                    ]
1734
                                ]
1735
                            ],
1736
                            'report' => [
1737
                                'type' => Segment::class,
1738
                                'options' => [
1739
                                    'route' => '/report/:id',
1740
                                    'constraints' => [
1741
                                        'id' => '[A-Za-z0-9\-]+\=*'
1742
                                    ],
1743
                                    'defaults' => [
1744
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
1745
                                        'action' => 'report'
1746
                                    ]
1747
                                ]
1748
                            ],
1749
                        ]
1750
                    ],
1 www 1751
                    'my-profiles' => [
1752
                        'type' => Literal::class,
1753
                        'options' => [
1754
                            'route' => '/my-profiles',
1755
                            'defaults' => [
1756
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
1757
                                'action' => 'index'
1758
                            ]
1759
                        ],
1760
                        'may_terminate' => true,
1761
                        'child_routes' => [
1762
                            'add' => [
1763
                                'type' => Literal::class,
1764
                                'options' => [
1765
                                    'route' => '/add',
1766
                                    'defaults' => [
1767
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1768
                                        'action' => 'add'
1769
                                    ]
1770
                                ]
1771
                            ],
1772
                            'edit' => [
1773
                                'type' => Segment::class,
1774
                                'options' => [
1775
                                    'route' => '/edit/:id',
1776
                                    'constraints' => [
1777
                                        'id' => '[A-Za-z0-9\-]+\=*'
1778
                                    ],
1779
                                    'defaults' => [
1780
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1781
                                        'action' => 'edit'
1782
                                    ]
1783
                                ]
1784
                            ],
1785
                            'delete' => [
1786
                                'type' => Segment::class,
1787
                                'options' => [
1788
                                    'route' => '/delete/:id',
1789
                                    'constraints' => [
1790
                                        'id' => '[A-Za-z0-9\-]+\=*'
1791
                                    ],
1792
                                    'defaults' => [
1793
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1794
                                        'action' => 'delete'
1795
                                    ]
1796
                                ]
1797
                            ],
1798
                            'extended' => [
1799
                                'type' => Segment::class,
1800
                                'options' => [
1801
                                    'route' => '/extended/:id',
1802
                                    'constraints' => [
1803
                                        'id' => '[A-Za-z0-9\-]+\=*'
1804
                                    ],
1805
                                    'defaults' => [
1806
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1807
                                        'action' => 'extended'
1808
                                    ]
1809
                                ]
1810
                            ],
1811
                            'image' => [
1812
                                'type' => Segment::class,
1813
                                'options' => [
1814
                                    'route' => '/image/:id/operation/:operation',
1815
                                    'constraints' => [
1816
                                        'id' => '[A-Za-z0-9\-]+\=*',
1817
                                        'operation' => 'upload|delete'
1818
                                    ],
1819
                                    'defaults' => [
1820
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1821
                                        'action' => 'image'
1822
                                    ]
1823
                                ]
1824
                            ],
1825
                            'cover' => [
1826
                                'type' => Segment::class,
1827
                                'options' => [
1828
                                    'route' => '/cover/:id/operation/:operation',
1829
                                    'constraints' => [
1830
                                        'id' => '[A-Za-z0-9\-]+\=*',
1831
                                        'operation' => 'upload|delete'
1832
                                    ],
1833
                                    'defaults' => [
1834
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1835
                                        'action' => 'cover'
1836
                                    ]
1837
                                ]
1838
                            ],
1839
                            'experience' => [
1840
                                'type' => Segment::class,
1841
                                'options' => [
1842
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
1843
                                    'constraints' => [
1844
                                        'id' => '[A-Za-z0-9\-]+\=*',
1845
                                        'operation' => 'add|edit|delete',
1846
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1847
                                    ],
1848
                                    'defaults' => [
1849
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1850
                                        'action' => 'experience'
1851
                                    ]
1852
                                ]
1853
                            ],
1854
                            'education' => [
1855
                                'type' => Segment::class,
1856
                                'options' => [
1857
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
1858
                                    'constraints' => [
1859
                                        'id' => '[A-Za-z0-9\-]+\=*',
1860
                                        'operation' => 'add|edit|delete',
1861
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1862
                                    ],
1863
                                    'defaults' => [
1864
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1865
                                        'action' => 'education'
1866
                                    ]
1867
                                ]
1868
                            ],
1869
                            'language' => [
1870
                                'type' => Segment::class,
1871
                                'options' => [
1872
                                    'route' => '/language/:id',
1873
                                    'constraints' => [
1874
                                        'id' => '[A-Za-z0-9\-]+\=*'
1875
                                    ],
1876
                                    'defaults' => [
1877
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1878
                                        'action' => 'language'
1879
                                    ]
1880
                                ]
1881
                            ],
1882
                            'location' => [
1883
                                'type' => Segment::class,
1884
                                'options' => [
1885
                                    'route' => '/location/:id',
1886
                                    'constraints' => [
1887
                                        'id' => '[A-Za-z0-9\-]+\=*'
1888
                                    ],
1889
                                    'defaults' => [
1890
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1891
                                        'action' => 'location'
1892
                                    ]
1893
                                ]
1894
                            ],
1895
                            'skill' => [
1896
                                'type' => Segment::class,
1897
                                'options' => [
1898
                                    'route' => '/skill/:id',
1899
                                    'constraints' => [
1900
                                        'id' => '[A-Za-z0-9\-]+\=*'
1901
                                    ],
1902
                                    'defaults' => [
1903
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1904
                                        'action' => 'skill'
1905
                                    ]
1906
                                ]
1907
                            ],
1908
                            'social-network' => [
1909
                                'type' => Segment::class,
1910
                                'options' => [
1911
                                    'route' => '/social-network/:id',
1912
                                    'constraints' => [
1913
                                        'id' => '[A-Za-z0-9\-]+\=*'
1914
                                    ],
1915
                                    'defaults' => [
1916
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1917
                                        'action' => 'socialNetwork'
1918
                                    ]
1919
                                ]
1920
                            ]
1921
                        ]
1922
                    ]
1923
                ]
1924
            ],
1925
 
1926
 
1927
 
1928
            'company' => [
1929
                'type' => Literal::class,
1930
                'options' => [
1931
                    'route' => '/company',
1932
                    'defaults' => [
1933
                        'controller' => '\LeadersLinked\Controller\CompanyController',
1934
                        'action' => 'index'
1935
                    ]
1936
                ],
1937
                'may_terminate' => true,
1938
                'child_routes' => [
1939
                    'view' => [
1940
                        'type' => Segment::class,
1941
                        'options' => [
1942
                            'route' => '/view/:id',
1943
                            'constraints' => [
1944
                                'id' => '[A-Za-z0-9\-]+\=*'
1945
                            ],
1946
                            'defaults' => [
1947
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1948
                                'action' => 'view'
1949
                            ]
1950
                        ]
1951
                    ],
1952
                    'follow' => [
1953
                        'type' => Segment::class,
1954
                        'options' => [
1955
                            'route' => '/follow/:id',
1956
                            'constraints' => [
1957
                                'id' => '[A-Za-z0-9\-]+\=*'
1958
                            ],
1959
                            'defaults' => [
1960
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1961
                                'action' => 'follow'
1962
                            ]
1963
 
1964
                        ]
1965
                    ],
1966
                    'unfollow' => [
1967
                        'type' => Segment::class,
1968
                        'options' => [
1969
                            'route' => '/unfollow/:id',
1970
                            'constraints' => [
1971
                                'id' => '[A-Za-z0-9\-]+\=*'
1972
                            ],
1973
                            'defaults' => [
1974
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1975
                                'action' => 'unfollow'
1976
                            ]
1977
                        ]
1978
                    ],
1979
                    'request' => [
1980
                        'type' => Segment::class,
1981
                        'options' => [
1982
                            'route' => '/request/:id',
1983
                            'constraints' => [
1984
                                'id' => '[A-Za-z0-9\-]+\=*'
1985
                            ],
1986
                            'defaults' => [
1987
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1988
                                'action' => 'request'
1989
                            ]
1990
                        ]
1991
                    ],
1992
 
1993
 
1994
 
1995
                    'accept' => [
1996
                        'type' => Segment::class,
1997
                        'options' => [
1998
                            'route' => '/accept/:id',
1999
                            'constraints' => [
2000
                                'id' => '[A-Za-z0-9\-]+\=*'
2001
                            ],
2002
                            'defaults' => [
2003
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2004
                                'action' => 'accept'
2005
                            ]
2006
                        ]
2007
                    ],
2008
                    'cancel' => [
2009
                        'type' => Segment::class,
2010
                        'options' => [
2011
                            'route' => '/cancel/:id',
2012
                            'constraints' => [
2013
                                'id' => '[A-Za-z0-9\-]+\=*'
2014
                            ],
2015
                            'defaults' => [
2016
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2017
                                'action' => 'cancel'
2018
                            ]
2019
                        ]
2020
                    ],
2021
                    'reject' => [
2022
                        'type' => Segment::class,
2023
                        'options' => [
2024
                            'route' => '/reject/:id',
2025
                            'constraints' => [
2026
                                'id' => '[A-Za-z0-9\-]+\=*'
2027
                            ],
2028
                            'defaults' => [
2029
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2030
                                'action' => 'reject'
2031
                            ]
2032
                        ]
2033
                    ],
2034
                    'leave' => [
2035
                        'type' => Segment::class,
2036
                        'options' => [
2037
                            'route' => '/leave/:id',
2038
                            'constraints' => [
2039
                                'id' => '[A-Za-z0-9\-]+\=*'
2040
                            ],
2041
                            'defaults' => [
2042
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2043
                                'action' => 'leave'
2044
                            ]
2045
                        ]
2046
                    ],
2047
                    'following-companies' => [
2048
                        'type' => Literal::class,
2049
                        'options' => [
2050
                            'route' => '/following-companies',
2051
                            'defaults' => [
2052
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2053
                                'action' => 'followingCompanies'
2054
                            ]
2055
                        ],
2056
                    ],
2057
                    'requests-sent' => [
2058
                        'type' => Literal::class,
2059
                        'options' => [
2060
                            'route' => '/requests-sent',
2061
                            'defaults' => [
2062
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2063
                                'action' => 'requestsSent'
2064
                            ]
2065
                        ],
2066
                        'may_terminate' => true,
2067
                    ],
2068
                    'invitations-received' => [
2069
                        'type' => Literal::class,
2070
                        'options' => [
2071
                            'route' => '/invitations-received',
2072
                            'defaults' => [
2073
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2074
                                'action' => 'invitationsReceived'
2075
                            ]
2076
                        ],
2077
                        'may_terminate' => true,
2078
                    ],
2079
 
2080
 
2081
 
2082
                    'i-work-with' => [
2083
                        'type' => Literal::class,
2084
                        'options' => [
2085
                            'route' => '/i-work-with',
2086
                            'defaults' => [
2087
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2088
                                'action' => 'iWorkWith'
2089
                            ]
2090
                        ],
2091
                        'may_terminate' => true,
2092
                    ],
2093
 
2094
 
2095
 
2096
                    'my-companies' => [
2097
                        'type' => Literal::class,
2098
                        'options' => [
2099
                            'route' => '/my-companies',
2100
                            'defaults' => [
2101
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2102
                                'action' => 'index'
2103
                            ]
2104
                        ],
2105
                        'may_terminate' => true,
2106
                        'child_routes' => [
2107
                            'add' => [
2108
                                'type' => Literal::class,
2109
                                'options' => [
2110
                                    'route' => '/add',
2111
                                    'defaults' => [
2112
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2113
                                        'action' => 'add'
2114
                                    ]
2115
                                ]
2116
                            ],
2117
 
2118
                        ]
2119
                    ],
2120
 
2121
                ]
2122
            ],
2123
 
2124
            'account-settings' => [
2125
                'type' => Literal::class,
2126
                'options' => [
2127
                    'route' => '/account-settings',
2128
                    'defaults' => [
2129
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2130
                        'action' => 'index'
2131
                    ]
2132
                ],
2133
                'may_terminate' => true,
2134
                'child_routes' => [
2135
                    'image' => [
2136
                        'type' => Segment::class,
2137
                        'options' => [
2138
                            'route' => '/image/:operation',
2139
                            'cconstraints' => [
2140
                                'operation' => 'upload|delete'
2141
                            ],
2142
                            'defaults' => [
2143
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2144
                                'action' => 'image',
2145
                                'operation' => 'upload'
2146
                            ]
2147
                        ]
2148
                    ],
2149
                    'deactivate' => [
2150
                        'type' => Literal::class,
2151
                        'options' => [
2152
                            'route' => '/deactivate',
2153
                            'defaults' => [
2154
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2155
                                'action' => 'deactivate'
2156
                            ]
2157
                        ]
2158
                    ],
2159
                    'notifications' => [
2160
                        'type' => Literal::class,
2161
                        'options' => [
2162
                            'route' => '/notification',
2163
                            'defaults' => [
2164
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2165
                                'action' => 'notification'
2166
                            ]
2167
                        ]
2168
                    ],
2169
                    'password' => [
2170
                        'type' => Literal::class,
2171
                        'options' => [
2172
                            'route' => '/password',
2173
                            'defaults' => [
2174
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2175
                                'action' => 'password'
2176
                            ]
2177
                        ]
2178
                    ],
2179
                    'add-facebook' => [
2180
                        'type' => Literal::class,
2181
                        'options' => [
2182
                            'route' => '/add-facebook',
2183
                            'defaults' => [
2184
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2185
                                'action' => 'addFacebook'
2186
                            ]
2187
                        ]
2188
                    ],
2189
                    'remove-facebook' => [
2190
                        'type' => Literal::class,
2191
                        'options' => [
2192
                            'route' => '/remove-facebook',
2193
                            'defaults' => [
2194
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2195
                                'action' => 'removeFacebook'
2196
                            ]
2197
                        ]
2198
                    ],
2199
                    'add-twitter' => [
2200
                        'type' => Literal::class,
2201
                        'options' => [
2202
                            'route' => '/add-twitter',
2203
                            'defaults' => [
2204
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2205
                                'action' => 'addTwitter'
2206
                            ]
2207
                        ]
2208
                    ],
2209
                    'remove-twitter' => [
2210
                        'type' => Literal::class,
2211
                        'options' => [
2212
                            'route' => '/remove-twitter',
2213
                            'defaults' => [
2214
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2215
                                'action' => 'removeTwitter'
2216
                            ]
2217
                        ]
2218
                    ],
2219
                    'add-google' => [
2220
                        'type' => Literal::class,
2221
                        'options' => [
2222
                            'route' => '/add-google',
2223
                            'defaults' => [
2224
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2225
                                'action' => 'addGoogle'
2226
                            ]
2227
                        ]
2228
                    ],
2229
                    'remove-google' => [
2230
                        'type' => Literal::class,
2231
                        'options' => [
2232
                            'route' => '/remove-google',
2233
                            'defaults' => [
2234
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2235
                                'action' => 'removeGoogle'
2236
                            ]
2237
                        ]
2238
                    ],
2239
                    'location' => [
2240
                        'type' => Literal::class,
2241
                        'options' => [
2242
                            'route' => '/location',
2243
                            'defaults' => [
2244
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2245
                                'action' => 'location'
2246
                            ]
2247
                        ]
2248
                    ],
2249
                    'privacy' => [
2250
                        'type' => Literal::class,
2251
                        'options' => [
2252
                            'route' => '/privacy',
2253
                            'defaults' => [
2254
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2255
                                'action' => 'privacy'
2256
                            ]
2257
                        ]
2258
                    ],
2259
                    'basic' => [
2260
                        'type' => Literal::class,
2261
                        'options' => [
2262
                            'route' => '/basic',
2263
                            'defaults' => [
2264
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2265
                                'action' => 'basic'
2266
                            ]
2267
                        ]
2268
                    ],
2269
                    'transactions' => [
2270
                        'type' => Literal::class,
2271
                        'options' => [
2272
                            'route' => '/transactions',
2273
                            'defaults' => [
2274
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2275
                                'action' => 'transactions'
2276
                            ]
2277
                        ],
2278
                        'may_terminate' => true,
2279
                        'child_routes' => [
2280
                            'add-funds' => [
2281
                                'type' => Literal::class,
2282
                                'options' => [
2283
                                    'route' => '/add-funds',
2284
                                    'defaults' => [
2285
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2286
                                        'action' => 'addFund'
2287
                                    ]
2288
                                ]
2289
                            ],
2290
                        ]
2291
                    ],
2292
                    'browsers' => [
2293
                        'type' => Literal::class,
2294
                        'options' => [
2295
                            'route' => '/browsers',
2296
                            'defaults' => [
2297
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2298
                                'action' => 'browsers'
2299
                            ]
2300
                        ]
2301
                    ],
2302
                    'ips' => [
2303
                        'type' => Literal::class,
2304
                        'options' => [
2305
                            'route' => '/ips',
2306
                            'defaults' => [
2307
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2308
                                'action' => 'ips'
2309
                            ]
2310
                        ]
2311
                    ],
2312
                    'devices' => [
2313
                        'type' => Literal::class,
2314
                        'options' => [
2315
                            'route' => '/devices',
2316
                            'defaults' => [
2317
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2318
                                'action' => 'devices'
2319
                            ]
2320
                        ]
2321
                    ]
2322
                ],
2323
                'may_terminate' => true
2324
            ],
2325
 
2326
            'moodle' => [
2327
                'type' => Literal::class,
2328
                'options' => [
2329
                    'route' => '/moodle',
2330
                    'defaults' => [
2331
                        'controller' => '\LeadersLinked\Controller\MoodleController',
2332
                        'action' => 'index'
2333
                    ]
2334
                ],
2335
                'may_terminate' => true
2336
            ],
2337
 
2338
            'oauth' => [
2339
                'type' => Literal::class,
2340
                'options' => [
2341
                    'route' => '/oauth',
2342
                    'defaults' => [
2343
                        'controller' => '\LeadersLinked\Controller\OauthController',
2344
                        'action' => 'index'
2345
                    ]
2346
                ],
2347
                'may_terminate' => true,
2348
                'child_routes' => [
2349
                    'facebook' => [
2350
                        'type' => Literal::class,
2351
                        'options' => [
2352
                            'route' => '/facebook',
2353
                            'defaults' => [
2354
                                'controller' => '\LeadersLinked\Controller\OauthController',
2355
                                'action' => 'facebook'
2356
                            ]
2357
                        ],
2358
                        'may_terminate' => true,
2359
                        'child_routes' => [
2360
                            'delete' => [
2361
                                'type' => Literal::class,
2362
                                'options' => [
2363
                                    'route' => '/delete',
2364
                                    'defaults' => [
2365
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2366
                                        'action' => 'facebookDelete'
2367
                                    ]
2368
                                ],
2369
                                'may_terminate' => true,
2370
                            ],
2371
                            'cancel' => [
2372
                                'type' => Literal::class,
2373
                                'options' => [
2374
                                    'route' => '/cancel',
2375
                                    'defaults' => [
2376
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2377
                                        'action' => 'facebookCancel'
2378
                                    ]
2379
                                ],
2380
                                'may_terminate' => true,
2381
                            ],
2382
                        ],
2383
                    ],
2384
                    'twitter' => [
2385
                        'type' => Literal::class,
2386
                        'options' => [
2387
                            'route' => '/twitter',
2388
                            'defaults' => [
2389
                                'controller' => '\LeadersLinked\Controller\OauthController',
2390
                                'action' => 'twitter'
2391
                            ]
2392
                        ],
2393
                        'may_terminate' => true,
2394
                    ],
2395
                    'google' => [
2396
                        'type' => Literal::class,
2397
                        'options' => [
2398
                            'route' => '/google',
2399
                            'defaults' => [
2400
                                'controller' => '\LeadersLinked\Controller\OauthController',
2401
                                'action' => 'google'
2402
                            ]
2403
                        ],
2404
                        'may_terminate' => true,
2405
                    ],
2406
                    /*'facebook' => [
2407
                        'type' => Literal::class,
2408
                        'options' => [
2409
                            'route' => '/facebook',
2410
                            'defaults' => [
2411
                                'controller' => '\LeadersLinked\Controller\OauthController',
2412
                                'action' => 'facebook'
2413
                            ]
2414
                        ],
2415
                        'may_terminate' => true,
2416
                        'child_routes' => [
2417
                            'cancel' => [
2418
                                'type' => Literal::class,
2419
                                'options' => [
2420
                                    'route' => '/cancel',
2421
                                    'defaults' => [
2422
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2423
                                        'action' => 'facebookCancel'
2424
                                    ]
2425
                                ]
2426
                            ],
2427
                            'delete' => [
2428
                                'type' => Literal::class,
2429
                                'options' => [
2430
                                    'route' => '/delete',
2431
                                    'defaults' => [
2432
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2433
                                        'action' => 'facebookDelete'
2434
                                    ]
2435
                                ]
2436
                            ]
2437
                        ]
2438
                    ]*/
2439
                ]
2440
            ],
2441
 
2442
 
2443
 
2444
            'helpers' => [
2445
                'type' => Literal::class,
2446
                'options' => [
2447
                    'route' => '/helpers',
2448
                    'defaults' => [
2449
                        'controller' => '\LeadersLinked\Controller\HelperController',
2450
                        'action' => 'index'
2451
                    ]
2452
 
2453
                ],
2454
                'may_terminate' => true,
2455
                'child_routes' => [
2456
                    'search-people' => [
2457
                        'type' => Literal::class,
2458
                        'options' => [
2459
                            'route' => '/search-people',
2460
                            'defaults' => [
2461
                                'controller' => '\LeadersLinked\Controller\HelperController',
2462
                                'action' => 'searchPeople'
2463
                            ]
2464
                        ]
2465
                    ],
2466
                    'company-suggestion' => [
2467
                        'type' => Segment::class,
2468
                        'options' => [
2469
                            'route' => '/company-suggestion/:company_id',
2470
                            'constraints' => [
2471
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2472
                            ],
2473
                            'defaults' => [
2474
                                'controller' => '\LeadersLinked\Controller\HelperController',
2475
                                'action' => 'companySuggestion'
2476
                            ]
2477
                        ]
2478
                    ],
2479
                    'posts' => [
2480
                        'type' => Literal::class,
2481
                        'options' => [
2482
                            'route' => '/posts',
2483
                            'defaults' => [
2484
                                'controller' => '\LeadersLinked\Controller\HelperController',
2485
                                'action' => 'posts'
2486
                            ]
2487
                        ]
2488
                    ],
2489
                    'people-you-may-know' => [
2490
                        'type' => Literal::class,
2491
                        'options' => [
2492
                            'route' => '/people-you-may-know',
2493
                            'defaults' => [
2494
                                'controller' => '\LeadersLinked\Controller\HelperController',
2495
                                'action' => 'peopleYouMayKnow'
2496
                            ]
2497
                        ]
2498
                    ],
2499
                    'people-viewed-profile' => [
2500
                        'type' => Segment::class,
2501
                        'options' => [
2502
                            'route' => '/people-viewed-profile/:user_profile_id',
2503
                            'constraints' => [
2504
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
2505
                            ],
2506
                            'defaults' => [
2507
                                'controller' => '\LeadersLinked\Controller\HelperController',
2508
                                'action' => 'peopleViewedProfile'
2509
                            ]
2510
                        ]
2511
                    ],
2512
                    'company-follower' => [
2513
                        'type' => Segment::class,
2514
                        'options' => [
2515
                            'route' => '/company-follower/:company_id',
2516
                            'constraints' => [
2517
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2518
                            ],
2519
                            'defaults' => [
2520
                                'controller' => '\LeadersLinked\Controller\HelperController',
2521
                                'action' => 'companyFollower'
2522
                            ]
2523
                        ]
2524
                    ],
2525
                    'group-members' => [
2526
                        'type' => Segment::class,
2527
                        'options' => [
2528
                            'route' => '/group-members/:group_id',
2529
                            'constraints' => [
2530
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2531
                            ],
2532
                            'defaults' => [
2533
                                'controller' => '\LeadersLinked\Controller\HelperController',
2534
                                'action' => 'groupMembers'
2535
                            ]
2536
                        ],
2537
                        'may_terminate' => true,
2538
                        'child_routes' => [
2539
                            'invite' => [
2540
                                'type' => Literal::class,
2541
                                'options' => [
2542
                                    'route' => '/invite',
2543
                                    'defaults' => [
2544
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2545
                                        'action' => 'groupMemberInvite'
2546
                                    ]
2547
                                ]
2548
                            ],
2549
                            'reject' => [
2550
                                'type' => Segment::class,
2551
                                'options' => [
2552
                                    'route' => '/reject/:user_id',
2553
                                    'constraints' => [
2554
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2555
                                    ],
2556
                                    'defaults' => [
2557
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2558
                                        'action' => 'groupMemberReject'
2559
                                    ]
2560
                                ]
2561
                            ],
2562
                            'cancel' => [
2563
                                'type' => Segment::class,
2564
                                'options' => [
2565
                                    'route' => '/cancel/:user_id',
2566
                                    'constraints' => [
2567
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2568
                                    ],
2569
                                    'defaults' => [
2570
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2571
                                        'action' => 'groupMemberCancel'
2572
                                    ]
2573
                                ]
2574
                            ],
2575
                            'approve' => [
2576
                                'type' => Segment::class,
2577
                                'options' => [
2578
                                    'route' => '/approve/:user_id',
2579
                                    'constraints' => [
2580
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2581
                                    ],
2582
                                    'defaults' => [
2583
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2584
                                        'action' => 'groupMemberApprove'
2585
                                    ]
2586
                                ]
2587
                            ],
2588
                        ]
2589
                    ],
2590
 
2591
                    'groups-suggestion' => [
2592
                        'type' => Segment::class,
2593
                        'options' => [
2594
                            'route' => '/groups-suggestion/:group_id',
2595
                            'constraints' => [
2596
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2597
                            ],
2598
                            'defaults' => [
2599
                                'controller' => '\LeadersLinked\Controller\HelperController',
2600
                                'action' => 'groupsSuggestion'
2601
                            ]
2602
                        ]
2603
                    ],
2604
                ]
2605
            ],
2606
 
2607
            'help' => [
2608
                'type' => Literal::class,
2609
                'options' => [
2610
                    'route' => '/help',
2611
                    'defaults' => [
2612
                        'controller' => '\LeadersLinked\Controller\HelpController',
2613
                        'action' => 'send'
2614
                    ]
2615
                ],
2616
                'may_terminate' => true,
2617
            ],
2618
 
2619
 
2620
            'services' => [
2621
                'type' => Literal::class,
2622
                'options' => [
2623
                    'route' => '/services',
2624
                    'defaults' => [
2625
                        'controller' => '\LeadersLinked\Controller\ServiceController',
2626
                        'action' => 'index'
2627
                    ]
2628
                ],
2629
                'may_terminate' => true,
2630
                'child_routes' => [
2631
                    'storage' => [
2632
                        'type' => Segment::class,
2633
                        'options' => [
2634
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
2635
                            'constraints' => [
2636
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
2637
                                'code' => '[A-Za-z0-9\-]+\=*',
2638
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
2639
                            ],
2640
                            // MjM5ODk0Mzgg
2641
                            'defaults' => [
2642
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2643
                                'action' => 'storage'
2644
                            ]
2645
                        ]
2646
                    ],
2647
                    'device' => [
2648
                        'type' => Literal::class,
2649
                        'options' => [
2650
                            'route' => '/device',
2651
                            'defaults' => [
2652
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2653
                                'action' => 'device'
2654
                            ]
2655
                        ]
2656
                    ],
2657
                    'fcm' => [
2658
                        'type' => Literal::class,
2659
                        'options' => [
2660
                            'route' => '/fcm',
2661
                            'defaults' => [
2662
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2663
                                'action' => 'fcm'
2664
                            ]
2665
                        ]
2666
                    ],
2667
                    'signin' => [
2668
                        'type' => Literal::class,
2669
                        'options' => [
2670
                            'route' => '/signin',
2671
                            'defaults' => [
2672
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2673
                                'action' => 'signin'
2674
                            ]
2675
                        ]
2676
                    ],
2677
                    'check-session' => [
2678
                        'type' => Literal::class,
2679
                        'options' => [
2680
                            'route' => '/check-session',
2681
                            'defaults' => [
2682
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2683
                                'action' => 'checkSession'
2684
                            ]
2685
                        ]
2686
                    ],
2687
 
2688
 
2689
 
2690
 
2691
                    'signout' => [
2692
                        'type' => Literal::class,
2693
                        'options' => [
2694
                            'route' => '/signout',
2695
                            'defaults' => [
2696
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2697
                                'action' => 'signout'
2698
                            ]
2699
                        ]
2700
                    ],
2701
                    /*'signup' => [
2702
                        'type' => Literal::class,
2703
                        'options' => [
2704
                            'route' => '/signup',
2705
                            'defaults' => [
2706
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2707
                                'action' => 'signup'
2708
                            ]
2709
                        ]
2710
                    ],
2711
                    'activate-account' => [
2712
                        'type' => Literal::class,
2713
                        'options' => [
2714
                            'route' => '/activate-account',
2715
                            'defaults' => [
2716
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2717
                                'action' => 'activateAccount'
2718
                            ]
2719
                        ]
2720
                    ],
2721
                    'forgot-password' => [
2722
                        'type' => Literal::class,
2723
                        'options' => [
2724
                            'route' => '/forgot-password',
2725
                            'defaults' => [
2726
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2727
                                'action' => 'forgotPassword'
2728
                            ]
2729
                        ]
2730
                    ],
2731
                    'reset-password' => [
2732
                        'type' => Literal::class,
2733
                        'options' => [
2734
                            'route' => '/reset-password',
2735
                            'defaults' => [
2736
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2737
                                'action' => 'resetPassword'
2738
                            ]
2739
                        ]
2740
                    ],*/
2741
                    'sync' => [
2742
                        'type' => Literal::class,
2743
                        'options' => [
2744
                            'route' => '/sync',
2745
                            'defaults' => [
2746
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2747
                                'action' => 'sync'
2748
                            ]
2749
                        ]
2750
                    ],
2751
 
2752
                    'sync-batch' => [
2753
                        'type' => Literal::class,
2754
                        'options' => [
2755
                            'route' => '/sync-batch',
2756
                            'defaults' => [
2757
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2758
                                'action' => 'syncBatch'
2759
                            ]
2760
                        ]
2761
                    ],
2762
 
2763
 
2764
                    'microlearning' => [
2765
                        'type' => Literal::class,
2766
                        'options' => [
2767
                            'route' => '/microlearning',
2768
                            'defaults' => [
2769
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
2770
                                'action' => 'index'
2771
                            ]
2772
                        ],
2773
                        'may_terminate' => true,
2774
                        'child_routes' => [
2775
                            'refresh' => [
2776
                                'type' => Literal::class,
2777
                                'options' => [
2778
                                    'route' => '/refresh',
2779
                                    'defaults' => [
2780
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2781
                                        'action' => 'microlearningRefresh'
2782
                                    ]
2783
                                ]
2784
                            ],
2785
 
2786
                            'check-changes' => [
2787
                                'type' => Literal::class,
2788
                                'options' => [
2789
                                    'route' => '/check-changes',
2790
                                    'defaults' => [
2791
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2792
                                        'action' => 'microlearningCheckChanges'
2793
                                    ]
2794
                                ]
2795
                            ],
2796
 
280 efrain 2797
                            'capsules' => [
2798
                                'type' => Literal::class,
2799
                                'options' => [
2800
                                    'route' => '/capsules',
2801
                                    'defaults' => [
2802
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2803
                                        'action' => 'microlearningCapsules'
2804
                                    ]
2805
                                ],
2806
                                'may_terminate' => true,
2807
                                'child_routes' => [
2808
                                    'comments' => [
2809
                                        'type' =>  Segment::class,
2810
                                        'options' => [
2811
                                            'route' => '/comments/:capsule_id',
2812
                                            'constraints' => [
2813
                                                'capsule_id' => '[A-Za-z0-9\-]+\=*'
2814
                                            ],
2815
                                            'defaults' => [
2816
                                                'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2817
                                                'action' => 'index'
2818
                                            ]
2819
                                        ],
2820
                                        'may_terminate' => true,
2821
                                        'child_routes' => [
2822
                                            'add' => [
2823
                                                'type' => Literal::class,
2824
                                                'options' => [
2825
                                                    'route' => '/add',
2826
                                                    'defaults' => [
2827
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2828
                                                        'action' => 'add'
2829
                                                    ]
2830
                                                ]
2831
                                            ],
2832
                                            'get' => [
2833
                                                'type' => Segment::class,
2834
                                                'options' => [
2835
                                                    'route' => '/get/:comment_id',
2836
                                                    'constraints' => [
2837
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
2838
                                                    ],
2839
                                                    'defaults' => [
2840
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2841
                                                        'action' => 'get'
2842
                                                    ]
2843
                                                ]
2844
                                            ],
2845
                                            'delete' => [
2846
                                                'type' => Segment::class,
2847
                                                'options' => [
2848
                                                    'route' => '/delete/:comment_id',
2849
                                                    'constraints' => [
2850
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
2851
                                                    ],
2852
                                                    'defaults' => [
2853
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2854
                                                        'action' => 'delete'
2855
                                                    ]
2856
                                                ]
2857
                                            ],
2858
                                        ]
2859
                                    ],
2860
                                ]
2861
                            ],
2862
 
2863
 
2864
                            'services/microlearning/capsules',
2865
                            'services/microlearning/capsules/comments',
2866
                            'services/microlearning/capsules/comments/get',
2867
                            'services/microlearning/capsules/comments/add',
2868
                            'services/microlearning/capsules/comments/delete',
2869
 
1 www 2870
                        ]
2871
                    ],
2872
 
2873
 
2874
                ]
2875
            ],
2876
 
2877
 
2878
            'marketplace' => [
2879
                'type' => Literal::class,
2880
                'options' => [
2881
                    'route' => '/marketplace',
2882
                    'defaults' => [
2883
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2884
                        'action' => 'index'
2885
                    ]
2886
                ],
2887
                'may_terminate' => true,
2888
                'child_routes' => [
2889
                    'categories' => [
2890
                        'type' => Segment::class,
2891
                        'options' => [
2892
                            'route' => '/categories',
2893
                            'defaults' => [
2894
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2895
                                'action' => 'getCategories'
2896
                            ]
2897
                        ]
2898
                    ],
2899
                    'enroll' => [
2900
                        'type' => Segment::class,
2901
                        'options' => [
2902
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
2903
                            'constraints' => [
2904
                                'company_id' => '[A-Za-z0-9\-]+\=*',
2905
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
2906
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
2907
                            ],
2908
                            'defaults' => [
2909
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2910
                                'action' => 'enroll'
2911
                            ]
2912
                        ]
2913
                    ],
2914
                ]
2915
            ],
2916
 
2917
 
2918
 
2919
 
2920
 
2921
        ]
2922
    ],
2923
 
2924
    'controllers' => [
2925
        'factories' => [
2926
 
2927
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
2928
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
2929
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
2930
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
2931
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
2932
 
2933
 
2934
 
2935
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
2936
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
2937
 
2938
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
2939
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
2940
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
2941
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
2942
 
2943
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
2944
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
2945
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,
2946
 
2947
 
2948
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
2949
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
2950
 
2951
 
2952
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
2953
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
2954
 
2955
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
2956
 
2957
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
2958
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
2959
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
272 geraldo 2960
 
2961
            \LeadersLinked\Controller\SelfEvaluationController::class => \LeadersLinked\Factory\Controller\SelfEvaluationControllerFactory::class,
1 www 2962
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,
2963
 
2964
            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
2965
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
2966
 
2967
 
2968
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,
2969
 
2970
        ],
2971
 
2972
        'aliases' => [
2973
 
2974
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
2975
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
2976
 
2977
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
2978
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
2979
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,
2980
 
2981
            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
2982
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
2983
 
2984
 
2985
            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
2986
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
2987
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
2988
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
2989
            '\LeadersLinked\Controller\InMailController' =>  \LeadersLinked\Controller\InMailController::class,
2990
 
2991
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
2992
 
2993
 
2994
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
2995
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
2996
 
2997
 
2998
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,
2999
 
3000
 
3001
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
3002
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
3003
            '\LeadersLinked\Controller\ProfileMicrolearningController' => \LeadersLinked\Controller\ProfileMicrolearningController::class,
3004
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
3005
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
3006
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
3007
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
3008
 
3009
 
3010
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
3011
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
3012
 
3013
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,
273 geraldo 3014
            '\LeadersLinked\Controller\SelfEvaluationController' => \LeadersLinked\Controller\SelfEvaluationController::class,
1 www 3015
 
3016
        ]
3017
    ],
3018
 
3019
    'laminas-cli' => [
3020
        'commands' => [
3021
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
3022
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
3023
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
3024
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
3025
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
242 efrain 3026
            'check-preview-poster-for-feed' => \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class,
1 www 3027
        ]
3028
    ],
3029
 
3030
    'service_manager' => [
3031
        'abstract_factories' => [
3032
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
3033
        ],
3034
        'factories' => [
3035
            'RenderingStrategy' => function ($container) {
3036
                $translator = $container->get('MvcTranslator');
3037
                return new \LeadersLinked\View\RenderingStrategy($translator);
3038
            },
3039
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
3040
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,
3041
 
3042
 
3043
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
3044
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
3045
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
3046
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
3047
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
242 efrain 3048
            \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class => \LeadersLinked\Factory\Command\CheckPreviewPosterForFeedCommandFactory::class,
1 www 3049
        ],
3050
        'aliases' => [ // 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
3051
        ]
3052
    ],
3053
    'view_helpers' => [
3054
        'factories' => [
3055
 
3056
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
3057
            \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
3058
            \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
3059
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
3060
            \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
3061
            \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
3062
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
3063
            \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
3064
            \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
3065
            \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
3066
 
3067
        ],
3068
        'invokables' => [
3069
 
3070
            'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
3071
            'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
3072
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
3073
        ],
3074
        'aliases' => [
3075
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
3076
            'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
3077
            'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
3078
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
3079
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
3080
            'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
3081
            'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
3082
            'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
3083
            'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
3084
        ]
3085
    ],
3086
    'controller_plugins' => [
3087
        'invokables' => [],
3088
        'factories' => [
3089
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class
3090
        ],
3091
        'aliases' => [
3092
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class
3093
        ]
3094
    ],
3095
    'view_manager' => [
3096
        'display_not_found_reason' => true,
3097
        'display_exceptions' => true,
3098
        'doctype' => 'HTML5',
3099
        'not_found_template' => 'error/404',
3100
        'exception_template' => 'error/index',
3101
        'template_map' => [
3102
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
3103
            'error/404' => __DIR__ . '/../view/error/404.phtml',
3104
            'error/index' => __DIR__ . '/../view/error/index.phtml'
3105
        ],
3106
        'template_path_stack' => [
3107
            __DIR__ . '/../view'
3108
        ],
3109
        'strategies' => [
3110
            'ViewJsonStrategy',
3111
            'RenderingStrategy'
3112
        ]
3113
    ]
3114
];
3115