Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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