Proyectos de Subversion LeadersLinked - Backend

Rev

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