Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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