Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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