-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.include.php
More file actions
101 lines (87 loc) · 4.62 KB
/
bootstrap.include.php
File metadata and controls
101 lines (87 loc) · 4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* CommandCollection
*
* @author Team phpManufaktur <team@phpmanufaktur.de>
* @link https://kit2.phpmanufaktur.de/CommandCollection
* @copyright 2013 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
// use $collection for all CommandCollection routes
$collection = $app['controllers_factory'];
// Setup, Update and Uninstall for the CommandCollection
$admin->get('/collection/setup',
'phpManufaktur\CommandCollection\Data\Setup\Setup::exec');
$admin->get('/collection/update',
'phpManufaktur\CommandCollection\Data\Setup\Update::exec');
$admin->get('/collection/uninstall',
'phpManufaktur\CommandCollection\Data\Setup\Uninstall::exec');
// Lorem Ipsum
$command->post('/loremipsum',
'phpManufaktur\CommandCollection\Control\LoremIpsum\LoremIpsum::exec')
->setOption('info', MANUFAKTUR_PATH.'/CommandCollection/command.loremipsum.json');
// Excel Read
$command->post('/excelread',
'phpManufaktur\CommandCollection\Control\ExcelRead\ExcelRead::initFrame')
->setOption('info', MANUFAKTUR_PATH.'/CommandCollection/command.excelread.json');
$collection->get('/excelread/exec',
'phpManufaktur\CommandCollection\Control\ExcelRead\ExcelRead::exec');
$app->post('/search/command/excelread',
'phpManufaktur\CommandCollection\Control\ExcelRead\Search::controllerSearch');
// Rating
$command->post('/rating',
'phpManufaktur\CommandCollection\Control\Rating\Rating::initFrame')
->setOption('info', MANUFAKTUR_PATH.'/CommandCollection/command.rating.json');
$collection->get('/rating/exec',
'phpManufaktur\CommandCollection\Control\Rating\Rating::controllerView');
$collection->post('/rating/response',
'phpManufaktur\CommandCollection\Control\Rating\Response::exec');
// Import Comments from FeedbackModule
$admin->get('/comments/import/feedbackmodule',
'phpManufaktur\CommandCollection\Control\Comments\Import\FeedbackModule::controllerStart');
$admin->get('/comments/import/feedbackmodule/execute',
'phpManufaktur\CommandCollection\Control\Comments\Import\FeedbackModule::controllerExecute');
// Comments
$command->post('/comments',
// kitCommand Comments
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerInitFrame')
->setOption('info', MANUFAKTUR_PATH.'/CommandCollection/command.comments.json');
$collection->get('/comments/view',
// default view for the comments
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerView');
$collection->get('/comments/reply/id/{comment_id}',
// reply to an existing comment
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerReply');
$collection->post('/comments/submit',
// new comment posted
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerSubmit');
$collection->get('/comments/contact/confirm/{guid}',
// contact confirm the email address
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerContactConfirmContact');
$collection->get('/comments/comment/confirm/{guid}',
// contact confirm the comment
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerContactConfirmComment');
$collection->get('/comments/unsubscribe/{guid}',
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerContactUnsubscribeThread');
$collection->get('/comments/admin/confirm/{guid}',
// admin confirm the comment
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerAdminConfirmComment');
$collection->get('/comments/admin/reject/{guid}',
// admin reject the comment
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerAdminRejectComment');
$collection->get('/comments/admin/lock/{guid}',
// admin reject the comment and lock the contact
'phpManufaktur\CommandCollection\Control\Comments\Comments::controllerAdminLockContact');
// administrative routes for the comments
$admin->get('/collection/comments/reject/id/{comment_id}',
'phpManufaktur\CommandCollection\Control\Comments\Comments::ControllerAdminPublishedCommentReject');
$admin->get('/collection/comments/remove/id/{comment_id}',
'phpManufaktur\CommandCollection\Control\Comments\Comments::ControllerAdminPublishedCommentRemove');
$admin->get('/collection/comments/confirm/id/{comment_id}',
'phpManufaktur\CommandCollection\Control\Comments\Comments::ControllerAdminPublishedCommentConfirm');
// RAL colors
$command->post('/ral',
'phpManufaktur\CommandCollection\Control\RAL\RAL::controllerRAL')
->setOption('info', MANUFAKTUR_PATH.'/CommandCollection/command.ral.json');
// mount the controller factories
$app->mount('/collection', $collection);