2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Handles find and replace tab
6 * Displays find and replace form, allows previewing and do the replacing
10 declare(strict_types
=1);
12 use PhpMyAdmin\Controllers\Table\SearchController
;
13 use PhpMyAdmin\Di\Container
;
14 use PhpMyAdmin\Response
;
16 if (! defined('ROOT_PATH')) {
17 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
21 * Gets some core libraries
23 require_once ROOT_PATH
. 'libraries/common.inc.php';
24 require_once ROOT_PATH
. 'libraries/tbl_common.inc.php';
26 $container = Container
::getDefaultContainer();
27 $container->factory(SearchController
::class);
28 $container->set('PhpMyAdmin\Response', Response
::getInstance());
29 $container->alias('response', 'PhpMyAdmin\Response');
31 $dependency_definitions = [
32 'searchType' => 'replace',
33 'url_query' => &$url_query
36 /** @var SearchController $controller */
37 $controller = $container->get(SearchController
::class, $dependency_definitions);
38 $controller->indexAction();