Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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