Translated using Weblate (French)
[phpmyadmin.git] / tbl_find_replace.php
blobf6747470caff4b14f91bd67a504df2cb37f5f5f4
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles find and replace tab
6 * Displays find and replace form, allows previewing and do the replacing
8 * @package PhpMyAdmin
9 */
10 declare(strict_types=1);
12 use PhpMyAdmin\Controllers\Table\SearchController;
13 use Symfony\Component\DependencyInjection\Definition;
15 if (! defined('ROOT_PATH')) {
16 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
19 /** @var string $url_query Overwritten in tbl_common.inc.php */
20 $url_query = null;
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' => 'replace',
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();