Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-12-07 20:17:59 +0300
committerMichal Čihař <michal@cihar.com>2016-12-07 20:17:59 +0300
commit308c9d79512d8b8a759e787d11ab1668138d0d5f (patch)
tree92336b7ff438ff6d7b3ffbc5248e7834d56a8663 /tbl_select.php
parentb56f101039b73866894325b0f6ab13894f0e44b2 (diff)
Simplify Response object handling
- always use use and short name - avoid calling getInstance() several times in one script Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tbl_select.php')
-rw-r--r--tbl_select.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tbl_select.php b/tbl_select.php
index 0c55d77aba..edfbb698fb 100644
--- a/tbl_select.php
+++ b/tbl_select.php
@@ -8,6 +8,7 @@
*
* @package PhpMyAdmin
*/
+use PMA\libraries\Response;
/**
* Gets some core libraries
@@ -23,7 +24,7 @@ $container->factory('PMA\libraries\controllers\table\TableSearchController');
$container->alias(
'TableSearchController', 'PMA\libraries\controllers\table\TableSearchController'
);
-$container->set('PMA\libraries\Response', PMA\libraries\Response::getInstance());
+$container->set('PMA\libraries\Response', Response::getInstance());
$container->alias('response', 'PMA\libraries\Response');
/* Define dependencies for the concerned controller */