Proyectos de Subversion LeadersLinked - Backend

Rev

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