Translated using Weblate (Portuguese)
[phpmyadmin.git] / libraries / services.php
blob59f1bb587f7ddccf9bc67f5d3506b1dcd614c8a1
1 <?php
3 declare(strict_types=1);
5 use PhpMyAdmin\ConfigStorage\Relation;
6 use PhpMyAdmin\ConfigStorage\RelationCleanup;
8 return [
9 'services' => [
10 'advisor' => [
11 'class' => PhpMyAdmin\Advisor::class,
12 'arguments' => [
13 '$dbi' => '@dbi',
14 '$expression' => '@expression_language',
17 'browse_foreigners' => [
18 'class' => PhpMyAdmin\BrowseForeigners::class,
19 'arguments' => ['@template'],
21 'config' => [
22 'class' => PhpMyAdmin\Config::class,
23 'arguments' => [CONFIG_FILE],
25 'central_columns' => [
26 'class' => PhpMyAdmin\Database\CentralColumns::class,
27 'arguments' => ['@dbi'],
29 'check_user_privileges' => [
30 'class' => PhpMyAdmin\CheckUserPrivileges::class,
31 'arguments' => ['@dbi'],
33 'create_add_field' => [
34 'class' => PhpMyAdmin\CreateAddField::class,
35 'arguments' => ['@dbi'],
37 'designer' => [
38 'class' => PhpMyAdmin\Database\Designer::class,
39 'arguments' => [
40 '$dbi' => '@dbi',
41 '$relation' => '@relation',
42 '$template' => '@template',
45 'designer_common' => [
46 'class' => PhpMyAdmin\Database\Designer\Common::class,
47 'arguments' => [
48 '$dbi' => '@dbi',
49 '$relation' => '@relation',
52 'error_handler' => [
53 'class' => PhpMyAdmin\ErrorHandler::class,
55 'error_report' => [
56 'class' => PhpMyAdmin\ErrorReport::class,
57 'arguments' => [
58 '@http_request',
59 '@relation',
60 '@template',
61 '@config',
64 'events' => [
65 'class' => PhpMyAdmin\Database\Events::class,
66 'arguments' => [
67 '@dbi',
68 '@template',
69 '@response',
72 'export' => [
73 'class' => PhpMyAdmin\Export::class,
74 'arguments' => ['@dbi'],
76 'export_options' => [
77 'class' => PhpMyAdmin\Export\Options::class,
78 'arguments' => [
79 '@relation',
80 '@export_template_model',
83 'export_template_model' => [
84 'class' => PhpMyAdmin\Export\TemplateModel::class,
85 'arguments' => ['@dbi'],
87 'expression_language' => [
88 'class' => Symfony\Component\ExpressionLanguage\ExpressionLanguage::class,
90 'flash' => [
91 'class' => PhpMyAdmin\FlashMessages::class,
93 'http_request' => [
94 'class' => PhpMyAdmin\Utils\HttpRequest::class,
96 'import' => [
97 'class' => PhpMyAdmin\Import::class,
99 'import_simulate_dml' => [
100 'class' => PhpMyAdmin\Import\SimulateDml::class,
101 'arguments' => ['@dbi'],
103 'insert_edit' => [
104 'class' => PhpMyAdmin\InsertEdit::class,
105 'arguments' => ['@dbi'],
107 'navigation' => [
108 'class' => PhpMyAdmin\Navigation\Navigation::class,
109 'arguments' => [
110 '@template',
111 '@relation',
112 '@dbi',
115 'normalization' => [
116 'class' => PhpMyAdmin\Normalization::class,
117 'arguments' => [
118 '$dbi' => '@dbi',
119 '$relation' => '@relation',
120 '$transformations' => '@transformations',
121 '$template' => '@template',
124 'operations' => [
125 'class' => PhpMyAdmin\Operations::class,
126 'arguments' => [
127 '$dbi' => '@dbi',
128 '$relation' => '@relation',
131 'partitioning_maintenance' => [
132 'class' => PhpMyAdmin\Partitioning\Maintenance::class,
133 'arguments' => ['$dbi' => '@dbi'],
135 'relation' => [
136 'class' => Relation::class,
137 'arguments' => ['$dbi' => '@dbi'],
139 'relation_cleanup' => [
140 'class' => RelationCleanup::class,
141 'arguments' => [
142 '@dbi',
143 '@relation',
146 'replication' => [
147 'class' => PhpMyAdmin\Replication::class,
149 'replication_gui' => [
150 'class' => PhpMyAdmin\ReplicationGui::class,
151 'arguments' => [
152 '$replication' => '@replication',
153 '$template' => '@template',
156 'response' => [
157 'class' => PhpMyAdmin\ResponseRenderer::class,
158 'factory' => [PhpMyAdmin\ResponseRenderer::class, 'getInstance'],
160 'server_plugins' => [
161 'class' => PhpMyAdmin\Server\Plugins::class,
162 'arguments' => ['@dbi'],
164 'server_privileges' => [
165 'class' => PhpMyAdmin\Server\Privileges::class,
166 'arguments' => [
167 '@template',
168 '@dbi',
169 '@relation',
170 '@relation_cleanup',
171 '@server_plugins',
174 'server_privileges_account_locking' => [
175 'class' => PhpMyAdmin\Server\Privileges\AccountLocking::class,
176 'arguments' => ['@dbi'],
178 'sql' => [
179 'class' => PhpMyAdmin\Sql::class,
180 'arguments' => [
181 '@dbi',
182 '@relation',
183 '@relation_cleanup',
184 '@operations',
185 '@transformations',
186 '@template',
189 'sql_query_form' => [
190 'class' => PhpMyAdmin\SqlQueryForm::class,
191 'arguments' => ['$template' => '@template'],
193 'status_data' => [
194 'class' => PhpMyAdmin\Server\Status\Data::class,
196 'status_monitor' => [
197 'class' => PhpMyAdmin\Server\Status\Monitor::class,
198 'arguments' => ['@dbi'],
200 'status_processes' => [
201 'class' => PhpMyAdmin\Server\Status\Processes::class,
202 'arguments' => ['@dbi'],
204 'table_indexes' => [
205 'class' => PhpMyAdmin\Table\Indexes::class,
206 'arguments' => ['$response' => '@response', '$template' => '@template', '$dbi' => '@dbi'],
208 'table_maintenance' => [
209 'class' => PhpMyAdmin\Table\Maintenance::class,
210 'arguments' => ['$dbi' => '@dbi'],
212 'table_search' => [
213 'class' => PhpMyAdmin\Table\Search::class,
214 'arguments' => ['$dbi' => '@dbi'],
216 'template' => [
217 'class' => PhpMyAdmin\Template::class,
219 'tracking' => [
220 'class' => PhpMyAdmin\Tracking::class,
221 'arguments' => [
222 '$sqlQueryForm' => '@sql_query_form',
223 '$template' => '@template',
224 '$relation' => '@relation',
225 '$dbi' => '@dbi',
228 'transformations' => [
229 'class' => PhpMyAdmin\Transformations::class,
231 'user_password' => [
232 'class' => PhpMyAdmin\UserPassword::class,
233 'arguments' => ['@server_privileges'],
235 'user_preferences' => [
236 'class' => PhpMyAdmin\UserPreferences::class,
238 PhpMyAdmin\DatabaseInterface::class => 'dbi',
239 PhpMyAdmin\FlashMessages::class => 'flash',
240 PhpMyAdmin\ResponseRenderer::class => 'response',