Translated using Weblate (French)
[phpmyadmin.git] / tbl_select.php
blob23b2ad295a30eaba3c74db28c40e6f453bf95566
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles table search tab
6 * display table search form, create SQL query from form data
7 * and call Sql::executeQueryAndSendQueryResponse() to execute it
9 * @package PhpMyAdmin
11 declare(strict_types=1);
13 use PhpMyAdmin\Controllers\Table\SearchController;
14 use Symfony\Component\DependencyInjection\Definition;
16 if (! defined('ROOT_PATH')) {
17 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
20 global $containerBuilder, $url_query;
22 require_once ROOT_PATH . 'libraries/common.inc.php';
23 require_once ROOT_PATH . 'libraries/tbl_common.inc.php';
25 /* Define dependencies for the concerned controller */
26 $dependency_definitions = [
27 'searchType' => 'normal',
28 'url_query' => &$url_query,
31 /** @var Definition $definition */
32 $definition = $containerBuilder->getDefinition(SearchController::class);
33 array_map(
34 static function (string $parameterName, $value) use ($definition) {
35 $definition->replaceArgument($parameterName, $value);
37 array_keys($dependency_definitions),
38 $dependency_definitions
41 /** @var SearchController $controller */
42 $controller = $containerBuilder->get(SearchController::class);
43 $controller->indexAction();