2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Handles table zoom search tab
6 * display table zoom search form, create SQL queries from form data
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
);
21 require_once ROOT_PATH
. 'libraries/common.inc.php';
22 require_once ROOT_PATH
. 'libraries/tbl_common.inc.php';
24 /* Define dependencies for the concerned controller */
25 $dependency_definitions = [
26 'searchType' => 'zoom',
27 'url_query' => &$url_query,
30 /** @var Definition $definition */
31 $definition = $containerBuilder->getDefinition(SearchController
::class);
32 $parameterBag = $containerBuilder->getParameterBag();
34 static function (string $parameterName, $value) use ($definition, $parameterBag) {
35 $definition->replaceArgument($parameterName, $parameterBag->escapeValue($value));
37 array_keys($dependency_definitions),
38 $dependency_definitions
41 /** @var SearchController $controller */
42 $controller = $containerBuilder->get(SearchController
::class);
43 $controller->indexAction();