[TASK] Deprecate ElementBrowserFramesetController
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / Backend / Routes.php
1 <?php
2
3 use TYPO3\CMS\Backend\Controller;
4
5 /**
6 * Definitions for routes provided by EXT:backend
7 * Contains all "regular" routes for entry points
8 *
9 * Please note that this setup is preliminary until all core use-cases are set up here.
10 * Especially some more properties regarding modules will be added until TYPO3 CMS 7 LTS, and might change.
11 *
12 * Currently the "access" property is only used so no token creation + validation is made,
13 * but will be extended further.
14 */
15 return [
16 // Login screen of the TYPO3 Backend
17 'login' => [
18 'path' => '/login',
19 'access' => 'public',
20 'target' => Controller\LoginController::class . '::formAction'
21 ],
22
23 // Main backend rendering setup (previously called backend.php) for the TYPO3 Backend
24 'main' => [
25 'path' => '/main',
26 'target' => Controller\BackendController::class . '::mainAction'
27 ],
28
29 // Logout script for the TYPO3 Backend
30 'logout' => [
31 'path' => '/logout',
32 'target' => Controller\LogoutController::class . '::logoutAction'
33 ],
34
35 // Register login frameset
36 'login_frameset' => [
37 'path' => '/login/frame',
38 'access' => 'public',
39 'target' => Controller\LoginController::class . '::refreshAction'
40 ],
41
42 /** Wizards */
43 // Register table wizard
44 'wizard_table' => [
45 'path' => '/wizard/table',
46 'target' => Controller\Wizard\TableController::class . '::mainAction'
47 ],
48
49 // Register add wizard
50 'wizard_add' => [
51 'path' => '/wizard/add',
52 'target' => Controller\Wizard\AddController::class . '::mainAction'
53 ],
54
55 // Register list wizard
56 'wizard_list' => [
57 'path' => '/wizard/list',
58 'target' => Controller\Wizard\ListController::class . '::mainAction'
59 ],
60
61 // Register edit wizard
62 'wizard_edit' => [
63 'path' => '/wizard/edit',
64 'target' => Controller\Wizard\EditController::class . '::mainAction'
65 ],
66
67 // Register link wizard
68 'wizard_link' => [
69 'path' => '/wizard/link/browse',
70 'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::mainAction'
71 ],
72
73 /** File- and folder-related routes */
74
75 // File navigation tree
76 'file_navframe' => [
77 'path' => '/folder/tree',
78 'target' => Controller\FileSystemNavigationFrameController::class . '::mainAction'
79 ],
80
81 // Editing the contents of a file
82 'file_edit' => [
83 'path' => '/file/editcontent',
84 'target' => Controller\File\EditFileController::class . '::mainAction'
85 ],
86
87 // Create a new folder
88 'file_newfolder' => [
89 'path' => '/file/new',
90 'target' => Controller\File\CreateFolderController::class . '::mainAction'
91 ],
92
93 // Rename a file
94 'file_rename' => [
95 'path' => '/file/rename',
96 'target' => Controller\File\RenameFileController::class . '::mainAction'
97 ],
98
99 // Replace a file with a different one
100 'file_replace' => [
101 'path' => '/file/replace',
102 'target' => Controller\File\ReplaceFileController::class . '::mainAction'
103 ],
104
105 // Upload new files
106 'file_upload' => [
107 'path' => '/file/upload',
108 'target' => Controller\File\FileUploadController::class . '::mainAction'
109 ],
110
111 // Add new online media
112 'online_media' => [
113 'path' => '/online-media',
114 'target' => Controller\OnlineMediaController::class . '::mainAction'
115 ],
116
117 /** DB Records-related routes */
118 // Register record history module
119 'record_history' => [
120 'path' => '/record/history',
121 'target' => Controller\ContentElement\ElementHistoryController::class . '::mainAction'
122 ],
123
124 // Register new record
125 'db_new' => [
126 'path' => '/record/new',
127 'target' => Controller\NewRecordController::class . '::mainAction'
128 ],
129
130 // Register sort pages
131 'pages_sort' => [
132 'path' => '/pages/sort',
133 'target' => Controller\Page\SortSubPagesController::class . '::mainAction'
134 ],
135
136 // Register create multiple pages
137 'pages_new' => [
138 'path' => '/pages/new',
139 'target' => Controller\Page\NewMultiplePagesController::class . '::mainAction'
140 ],
141
142 // Register new content element module (as whole document)
143 'new_content_element' => [
144 'path' => '/record/content/new',
145 'target' => Controller\ContentElement\NewContentElementController::class . '::mainAction'
146 ],
147
148 // Register new content element module (in modal)
149 'new_content_element_wizard' => [
150 'path' => '/record/content/wizard/new',
151 'target' => Controller\ContentElement\NewContentElementController::class . '::wizardAction'
152 ],
153
154 // Register move element module
155 'move_element' => [
156 'path' => '/record/move',
157 'target' => Controller\ContentElement\MoveElementController::class . '::mainAction'
158 ],
159
160 // Register show item module
161 'show_item' => [
162 'path' => '/record/info',
163 'target' => Controller\ContentElement\ElementInformationController::class . '::mainAction'
164 ],
165
166 // Register browser
167 // @deprecated since TYPO3 v9, will be removed in TYPO3 v10.
168 'browser' => [
169 'path' => '/record/browse',
170 'target' => \TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class . '::mainAction'
171 ],
172
173 // Dummy document - displays nothing but background color.
174 'dummy' => [
175 'path' => '/empty',
176 'target' => Controller\DummyController::class . '::mainAction'
177 ],
178
179 /** TYPO3 Core Engine-related routes */
180 /**
181 * TCE gateway (TYPO3 Core Engine) for database handling
182 * This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
183 * that manipulates all information in the database!!
184 * For syntax and API information, see the document 'TYPO3 Core APIs'
185 */
186 'tce_db' => [
187 'path' => '/record/commit',
188 'target' => Controller\SimpleDataHandlerController::class . '::mainAction'
189 ],
190
191 /**
192 * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
193 * This script serves as the file administration part of the TYPO3 Core Engine.
194 * Basically it includes two libraries which are used to manipulate files on the server.
195 *
196 * For syntax and API information, see the document 'TYPO3 Core APIs'
197 */
198 'tce_file' => [
199 'path' => '/file/commit',
200 'target' => Controller\File\FileController::class . '::mainAction'
201 ],
202
203 /**
204 * Main form rendering script
205 * By sending certain parameters to this script you can bring up a form
206 * which allows the user to edit the content of one or more database records.
207 */
208 'record_edit' => [
209 'path' => '/record/edit',
210 'target' => Controller\EditDocumentController::class . '::mainAction'
211 ],
212
213 // Thumbnails
214 'thumbnails' => [
215 'path' => '/thumbnails',
216 'target' => Controller\File\ThumbnailController::class . '::render'
217 ]
218 ];