Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 28 | Rev 67 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 28 Rev 66
Línea 83... Línea 83...
83
                        'action' => 'download'
83
                        'action' => 'download'
84
                    ]
84
                    ]
85
                ]
85
                ]
86
            ],
86
            ],
Línea -... Línea 87...
-
 
87
            
-
 
88
            /***** START TEST *****/
-
 
89
            'test' => [
-
 
90
                'type' => Literal::class,
-
 
91
                'options' => [
-
 
92
                    'route' => '/test',
-
 
93
                    'defaults' => [
-
 
94
                        'controller' => '\LeadersLinked\Controller\TestController',
-
 
95
                        'action' => 'index'
-
 
96
                    ]
-
 
97
                ],
-
 
98
                'may_terminate' => true,
-
 
99
                'child_routes' => [
-
 
100
                    'method-one' => [
-
 
101
                        'type' => Literal::class,
-
 
102
                        'options' => [
-
 
103
                            'route' => '/method-one',
-
 
104
                            'defaults' => [
-
 
105
                                'controller' => '\LeadersLinked\Controller\TestController',
-
 
106
                                'action' => 'methodOne'
-
 
107
                            ]
-
 
108
                        ]
-
 
109
                    ],
-
 
110
                    'method-one' => [
-
 
111
                        'type' => Literal::class,
-
 
112
                        'options' => [
-
 
113
                            'route' => '/method-one',
-
 
114
                            'defaults' => [
-
 
115
                                'controller' => '\LeadersLinked\Controller\TestController',
-
 
116
                                'action' => 'methodOne'
-
 
117
                            ]
-
 
118
                        ]
-
 
119
                    ],
-
 
120
                    'method-two' => [
-
 
121
                        'type' => Literal::class,
-
 
122
                        'options' => [
-
 
123
                            'route' => '/method-two',
-
 
124
                            'defaults' => [
-
 
125
                                'controller' => '\LeadersLinked\Controller\TestController',
-
 
126
                                'action' => 'methodTwo'
-
 
127
                            ]
-
 
128
                        ]
-
 
129
                    ],
-
 
130
                    'method-three' => [
-
 
131
                        'type' => Literal::class,
-
 
132
                        'options' => [
-
 
133
                            'route' => '/method-three',
-
 
134
                            'defaults' => [
-
 
135
                                'controller' => '\LeadersLinked\Controller\TestController',
-
 
136
                                'action' => 'methodThree'
-
 
137
                            ]
-
 
138
                        ]
-
 
139
                    ],
-
 
140
                    'method-four' => [
-
 
141
                        'type' => Literal::class,
-
 
142
                        'options' => [
-
 
143
                            'route' => '/method-four',
-
 
144
                            'defaults' => [
-
 
145
                                'controller' => '\LeadersLinked\Controller\TestController',
-
 
146
                                'action' => 'methodFour'
-
 
147
                            ]
-
 
148
                        ]
-
 
149
                    ],
-
 
150
                   
-
 
151
                ],
-
 
152
            ],  
-
 
153
            /***** END TEST *****/
87
            
154
            
88
            /*** START COMPANIES ***/
155
            /*** START COMPANIES ***/
89
            'companies' => [
156
            'companies' => [
90
                'type' => Literal::class,
157
                'type' => Literal::class,
91
                'options' => [
158
                'options' => [
Línea 762... Línea 829...
762
                                'action' => 'index'
829
                                'action' => 'index'
763
                            ]
830
                            ]
764
                        ],
831
                        ],
765
                        'may_terminate' => true,
832
                        'may_terminate' => true,
766
                        'child_routes' => [
833
                        'child_routes' => [
-
 
834
                            'quizzes' => [
-
 
835
                                'type' => Segment::class,
-
 
836
                                'options' => [
-
 
837
                                    'route' => '/quizzes',
767
                    
838
                                    
-
 
839
                                    'defaults' => [
-
 
840
                                        'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
841
                                        'action' => 'index'
-
 
842
                                    ]
-
 
843
                                ],
-
 
844
                                'may_terminate' => true,
-
 
845
                                'child_routes' => [
-
 
846
                                    'add' => [
-
 
847
                                        'type' => Literal::class,
-
 
848
                                        'options' => [
-
 
849
                                            'route' => '/add',
-
 
850
                                            'defaults' => [
-
 
851
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
852
                                                'action' => 'add'
-
 
853
                                            ]
-
 
854
                                        ]
-
 
855
                                    ],
-
 
856
                                    'edit' => [
-
 
857
                                        'type' => Segment::class,
-
 
858
                                        'options' => [
-
 
859
                                            'route' => '/:quiz_id/edit',
-
 
860
                                            'constraints' => [
-
 
861
                                                'quiz_id' => '[A-Za-z0-9\-]+\=*'
-
 
862
                                            ],
-
 
863
                                            'defaults' => [
-
 
864
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
865
                                                'action' => 'edit'
-
 
866
                                            ]
-
 
867
                                        ]
-
 
868
                                    ],
-
 
869
                                    'delete' => [
-
 
870
                                        'type' => Segment::class,
-
 
871
                                        'options' => [
-
 
872
                                            'route' => '/:quiz_id/delete',
-
 
873
                                            'constraints' => [
-
 
874
                                                'quiz_id' => '[A-Za-z0-9\-]+\=*'
-
 
875
                                            ],
-
 
876
                                            'defaults' => [
-
 
877
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
878
                                                'action' => 'delete'
-
 
879
                                            ]
-
 
880
                                        ]
-
 
881
                                    ],
-
 
882
                                    'check' => [
-
 
883
                                        'type' => Segment::class,
-
 
884
                                        'options' => [
-
 
885
                                            'route' => '/:quiz_id/check',
-
 
886
                                            'constraints' => [
-
 
887
                                                'quiz_id' => '[A-Za-z0-9\-]+\=*'
-
 
888
                                            ],
-
 
889
                                            'defaults' => [
-
 
890
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
891
                                                'action' => 'check'
-
 
892
                                            ]
-
 
893
                                        ]
-
 
894
                                    ],
-
 
895
                                    'publish' => [
-
 
896
                                        'type' => Segment::class,
-
 
897
                                        'options' => [
-
 
898
                                            'route' => '/:quiz_id/publish',
-
 
899
                                            'constraints' => [
-
 
900
                                                'quiz_id' => '[A-Za-z0-9\-]+\=*'
-
 
901
                                            ],
-
 
902
                                            'defaults' => [
-
 
903
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
904
                                                'action' => 'publish'
-
 
905
                                            ]
-
 
906
                                        ]
-
 
907
                                    ],
-
 
908
                                    'copy' => [
-
 
909
                                        'type' => Segment::class,
-
 
910
                                        'options' => [
-
 
911
                                            'route' => '/:quiz_id/copy',
-
 
912
                                            'constraints' => [
-
 
913
                                                'quiz_id' => '[A-Za-z0-9\-]+\=*'
-
 
914
                                            ],
-
 
915
                                            'defaults' => [
-
 
916
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuizController',
-
 
917
                                                'action' => 'copy'
-
 
918
                                            ]
-
 
919
                                        ]
-
 
920
                                    ],
-
 
921
                                    'questions' => [
-
 
922
                                        'type' => Segment::class,
-
 
923
                                        'options' => [
-
 
924
                                            'route' => '/:quiz_id/questions',
-
 
925
                                            'constraints' => [
-
 
926
                                                'quiz_id' => '[A-Za-z0-9\-]+\=*'
-
 
927
                                            ],
-
 
928
                                            'defaults' => [
-
 
929
                                                'controller' => '\LeadersLinked\Controller\MicrolearningQuestionController',
-
 
930
                                                'action' => 'index'
-
 
931
                                            ]
-
 
932
                                        ],
-
 
933
                                        'may_terminate' => true,
-
 
934
                                        'child_routes' => [
-
 
935
                                            'add' => [
-
 
936
                                                'type' => Literal::class,
-
 
937
                                                'options' => [
-
 
938
                                                    'route' => '/add',
-
 
939
                                                    'defaults' => [
-
 
940
                                                        'controller' => '\LeadersLinked\Controller\MicrolearningQuestionController',
-
 
941
                                                        'action' => 'add'
-
 
942
                                                    ]
-
 
943
                                                ]
-
 
944
                                            ],
-
 
945
                                            'edit' => [
-
 
946
                                                'type' => Segment::class,
-
 
947
                                                'options' => [
-
 
948
                                                    'route' => '/:question_id/edit',
-
 
949
                                                    'constraints' => [
-
 
950
                                                        'question_id' => '[A-Za-z0-9\-]+\=*'
-
 
951
                                                    ],
-
 
952
                                                    'defaults' => [
-
 
953
                                                        'controller' => '\LeadersLinked\Controller\MicrolearningQuestionController',
-
 
954
                                                        'action' => 'edit'
-
 
955
                                                    ]
-
 
956
                                                ]
-
 
957
                                            ],
-
 
958
                                            'delete' => [
-
 
959
                                                'type' => Segment::class,
-
 
960
                                                'options' => [
-
 
961
                                                    'route' => '/:question_id/delete',
-
 
962
                                                    'constraints' => [
-
 
963
                                                        'question_id' => '[A-Za-z0-9\-]+\=*'
-
 
964
                                                    ],
-
 
965
                                                    'defaults' => [
-
 
966
                                                        'controller' => '\LeadersLinked\Controller\MicrolearningQuestionController',
-
 
967
                                                        'action' => 'delete'
-
 
968
                                                    ]
-
 
969
                                                ]
-
 
970
                                            ],
-
 
971
                                            'answers' => [
-
 
972
                                                'type' => Segment::class,
-
 
973
                                                'options' => [
-
 
974
                                                    'route' => '/:question_id/answers',
-
 
975
                                                    'constraints' => [
-
 
976
                                                        'question_id' => '[A-Za-z0-9\-]+\=*'
-
 
977
                                                    ],
-
 
978
                                                    'defaults' => [
-
 
979
                                                        'controller' => '\LeadersLinked\Controller\MicrolearningAnswerController',
-
 
980
                                                        'action' => 'index'
-
 
981
                                                    ]
-
 
982
                                                ],
-
 
983
                                                'may_terminate' => true,
-
 
984
                                                'child_routes' => [
-
 
985
                                                    'add' => [
-
 
986
                                                        'type' => Literal::class,
-
 
987
                                                        'options' => [
-
 
988
                                                            'route' => '/add',
-
 
989
                                                            'defaults' => [
-
 
990
                                                                'controller' => '\LeadersLinked\Controller\MicrolearningAnswerController',
-
 
991
                                                                'action' => 'add'
-
 
992
                                                            ]
-
 
993
                                                        ]
-
 
994
                                                    ],
-
 
995
                                                    'edit' => [
-
 
996
                                                        'type' => Segment::class,
-
 
997
                                                        'options' => [
-
 
998
                                                            'route' => '/:answer_id/edit',
-
 
999
                                                            'constraints' => [
-
 
1000
                                                                'answer_id' => '[A-Za-z0-9\-]+\=*'
-
 
1001
                                                            ],
-
 
1002
                                                            'defaults' => [
-
 
1003
                                                                'controller' => '\LeadersLinked\Controller\MicrolearningAnswerController',
-
 
1004
                                                                'action' => 'edit'
-
 
1005
                                                            ]
-
 
1006
                                                        ]
-
 
1007
                                                    ],
-
 
1008
                                                    'delete' => [
-
 
1009
                                                        'type' => Segment::class,
-
 
1010
                                                        'options' => [
-
 
1011
                                                            'route' => '/:answer_id/delete',
-
 
1012
                                                            'constraints' => [
-
 
1013
                                                                'answer_id' => '[A-Za-z0-9\-]+\=*'
-
 
1014
                                                            ],
-
 
1015
                                                            'defaults' => [
-
 
1016
                                                                'controller' => '\LeadersLinked\Controller\MicrolearningAnswerController',
-
 
1017
                                                                'action' => 'delete'
-
 
1018
                                                            ]
-
 
1019
                                                        ]
-
 
1020
                                                    ],
-
 
1021
                                                ]
-
 
1022
                                            ],
-
 
1023
                                        ]
-
 
1024
                                    ],
-
 
1025
                                ]
-
 
1026
                            ],  
768
                            'topics' => [
1027
                            'topics' => [
769
                                'type' => Literal::class,
1028
                                'type' => Literal::class,
770
                                'options' => [
1029
                                'options' => [
771
                                    'route' => '/topics',
1030
                                    'route' => '/topics',
772
                                    'defaults' => [
1031
                                    'defaults' => [
Línea 2290... Línea 2549...
2290
            
2549
            
Línea 2291... Línea 2550...
2291
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
2550
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
-
 
2551
            
-
 
2552
            
-
 
2553
            \LeadersLinked\Controller\MicrolearningController::class => \LeadersLinked\Factory\Controller\MicrolearningControllerFactory::class,
-
 
2554
            \LeadersLinked\Controller\MicrolearningQuizController::class => \LeadersLinked\Factory\Controller\MicrolearningQuizControllerFactory::class,
2292
            
2555
            \LeadersLinked\Controller\MicrolearningQuestionController::class => \LeadersLinked\Factory\Controller\MicrolearningQuestionControllerFactory::class,
2293
            
2556
            \LeadersLinked\Controller\MicrolearningAnswerController::class => \LeadersLinked\Factory\Controller\MicrolearningAnswerControllerFactory::class,
2294
            \LeadersLinked\Controller\MicrolearningController::class => \LeadersLinked\Factory\Controller\MicrolearningControllerFactory::class,
2557
            
2295
            \LeadersLinked\Controller\MicrolearningTopicController::class => \LeadersLinked\Factory\Controller\MicrolearningTopicControllerFactory::class,
2558
            \LeadersLinked\Controller\MicrolearningTopicController::class => \LeadersLinked\Factory\Controller\MicrolearningTopicControllerFactory::class,
2296
            \LeadersLinked\Controller\MicrolearningCapsuleController::class => \LeadersLinked\Factory\Controller\MicrolearningCapsuleControllerFactory::class,
2559
            \LeadersLinked\Controller\MicrolearningCapsuleController::class => \LeadersLinked\Factory\Controller\MicrolearningCapsuleControllerFactory::class,
Línea 2308... Línea 2571...
2308
            \LeadersLinked\Controller\MicrolearningExtendUserProgramController::class => \LeadersLinked\Factory\Controller\MicrolearningExtendUserProgramControllerFactory::class,
2571
            \LeadersLinked\Controller\MicrolearningExtendUserProgramController::class => \LeadersLinked\Factory\Controller\MicrolearningExtendUserProgramControllerFactory::class,
2309
            \LeadersLinked\Controller\MicrolearningExtendUserSectorController::class => \LeadersLinked\Factory\Controller\MicrolearningExtendUserSectorControllerFactory::class,
2572
            \LeadersLinked\Controller\MicrolearningExtendUserSectorController::class => \LeadersLinked\Factory\Controller\MicrolearningExtendUserSectorControllerFactory::class,
2310
            \LeadersLinked\Controller\MicrolearningExtendUserStudentTypeController::class => \LeadersLinked\Factory\Controller\MicrolearningExtendUserStudentTypeControllerFactory::class,
2573
            \LeadersLinked\Controller\MicrolearningExtendUserStudentTypeController::class => \LeadersLinked\Factory\Controller\MicrolearningExtendUserStudentTypeControllerFactory::class,
Línea 2311... Línea 2574...
2311
            
2574
            
-
 
2575
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
-
 
2576
            
Línea 2312... Línea 2577...
2312
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
2577
            \LeadersLinked\Controller\TestController::class => \LeadersLinked\Factory\Controller\TestControllerFactory::class,
Línea 2313... Línea 2578...
2313
        
2578
        
2314
        ],
2579
        ],
Línea 2330... Línea 2595...
2330
            '\LeadersLinked\Controller\EmailTemplateController' => \LeadersLinked\Controller\EmailTemplateController::class,
2595
            '\LeadersLinked\Controller\EmailTemplateController' => \LeadersLinked\Controller\EmailTemplateController::class,
2331
            '\LeadersLinked\Controller\PushTemplateController' => \LeadersLinked\Controller\PushTemplateController::class,
2596
            '\LeadersLinked\Controller\PushTemplateController' => \LeadersLinked\Controller\PushTemplateController::class,
2332
            '\LeadersLinked\Controller\GroupTypeController' => \LeadersLinked\Controller\GroupTypeController::class,
2597
            '\LeadersLinked\Controller\GroupTypeController' => \LeadersLinked\Controller\GroupTypeController::class,
2333
            '\LeadersLinked\Controller\IndustryController' => \LeadersLinked\Controller\IndustryController::class,
2598
            '\LeadersLinked\Controller\IndustryController' => \LeadersLinked\Controller\IndustryController::class,
2334
            '\LeadersLinked\Controller\JobCategoryController' => \LeadersLinked\Controller\JobCategoryController::class,
2599
            '\LeadersLinked\Controller\JobCategoryController' => \LeadersLinked\Controller\JobCategoryController::class,
-
 
2600
            '\LeadersLinked\Controller\JobDescriptionController' => \LeadersLinked\Controller\JobDescriptionController::class,
2335
            '\LeadersLinked\Controller\PageController' => \LeadersLinked\Controller\PageController::class,
2601
            '\LeadersLinked\Controller\PageController' => \LeadersLinked\Controller\PageController::class,
2336
            '\LeadersLinked\Controller\PostController' => \LeadersLinked\Controller\PostController::class,
2602
            '\LeadersLinked\Controller\PostController' => \LeadersLinked\Controller\PostController::class,
2337
            '\LeadersLinked\Controller\SkillController' => \LeadersLinked\Controller\SkillController::class,
2603
            '\LeadersLinked\Controller\SkillController' => \LeadersLinked\Controller\SkillController::class,
Línea 2338... Línea 2604...
2338
            
2604
            
Línea 2339... Línea 2605...
2339
            
2605
            
Línea 2340... Línea 2606...
2340
            '\LeadersLinked\Controller\UserController' => \LeadersLinked\Controller\UserController::class,
2606
            '\LeadersLinked\Controller\UserController' => \LeadersLinked\Controller\UserController::class,
-
 
2607
            
-
 
2608
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
-
 
2609
            
2341
            
2610
            '\LeadersLinked\Controller\MicrolearningController' => \LeadersLinked\Controller\MicrolearningController::class,
2342
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
2611
            '\LeadersLinked\Controller\MicrolearningQuizController' => \LeadersLinked\Controller\MicrolearningQuizController::class,
2343
            
2612
            '\LeadersLinked\Controller\MicrolearningQuestionController' => \LeadersLinked\Controller\MicrolearningQuestionController::class,
2344
            '\LeadersLinked\Controller\MicrolearningController' => \LeadersLinked\Controller\MicrolearningController::class,
2613
            '\LeadersLinked\Controller\MicrolearningAnswerController' => \LeadersLinked\Controller\MicrolearningAnswerController::class,
2345
            '\LeadersLinked\Controller\MicrolearningTopicController' => \LeadersLinked\Controller\MicrolearningTopicController::class,
2614
            '\LeadersLinked\Controller\MicrolearningTopicController' => \LeadersLinked\Controller\MicrolearningTopicController::class,
Línea 2359... Línea 2628...
2359
            '\LeadersLinked\Controller\MicrolearningExtendUserSectorController' => \LeadersLinked\Controller\MicrolearningExtendUserSectorController::class,
2628
            '\LeadersLinked\Controller\MicrolearningExtendUserSectorController' => \LeadersLinked\Controller\MicrolearningExtendUserSectorController::class,
2360
            '\LeadersLinked\Controller\MicrolearningExtendUserStudentTypeController' => \LeadersLinked\Controller\MicrolearningExtendUserStudentTypeController::class,
2629
            '\LeadersLinked\Controller\MicrolearningExtendUserStudentTypeController' => \LeadersLinked\Controller\MicrolearningExtendUserStudentTypeController::class,
Línea 2361... Línea 2630...
2361
            
2630
            
-
 
2631
            
-
 
2632
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
-
 
2633
            
Línea 2362... Línea 2634...
2362
            
2634
            
2363
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
2635
            '\LeadersLinked\Controller\TestController' => \LeadersLinked\Controller\TestController::class,
Línea 2364... Línea 2636...
2364
 
2636