aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/symfony_request.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-09-17 17:12:41 +0200
committerNils Adermann <naderman@naderman.de>2013-09-17 17:12:41 +0200
commit9d8ac2b0ceb24dd14df61d083505941afb1b52c4 (patch)
treec51c6f605bf1c610a232772f2d5ec9c12e0ff5aa /phpBB/phpbb/symfony_request.php
parentf039a3308a3d57e7b9fab562bdd71cf1a9fb4dc9 (diff)
downloadforums-9d8ac2b0ceb24dd14df61d083505941afb1b52c4.tar
forums-9d8ac2b0ceb24dd14df61d083505941afb1b52c4.tar.gz
forums-9d8ac2b0ceb24dd14df61d083505941afb1b52c4.tar.bz2
forums-9d8ac2b0ceb24dd14df61d083505941afb1b52c4.tar.xz
forums-9d8ac2b0ceb24dd14df61d083505941afb1b52c4.zip
[ticket/11700] Fix unit tests after develop merge
PHPBB3-11700
Diffstat (limited to 'phpBB/phpbb/symfony_request.php')
-rw-r--r--phpBB/phpbb/symfony_request.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/phpBB/phpbb/symfony_request.php b/phpBB/phpbb/symfony_request.php
index 29ab8c000e..92784c213b 100644
--- a/phpBB/phpbb/symfony_request.php
+++ b/phpBB/phpbb/symfony_request.php
@@ -7,6 +7,8 @@
*
*/
+namespace phpbb;
+
use Symfony\Component\HttpFoundation\Request;
/**
@@ -17,26 +19,26 @@ if (!defined('IN_PHPBB'))
exit;
}
-class phpbb_symfony_request extends Request
+class symfony_request extends Request
{
/**
* Constructor
*
- * @param phpbb_request_interface $phpbb_request
+ * @param phpbb\request\request_interface $phpbb_request
*/
- public function __construct(phpbb_request_interface $phpbb_request)
+ public function __construct(\phpbb\request\request_interface $phpbb_request)
{
// This function is meant to sanitize the global input arrays
$sanitizer = function(&$value, $key) {
- $type_cast_helper = new phpbb_request_type_cast_helper();
+ $type_cast_helper = new \phpbb\request\type_cast_helper();
$type_cast_helper->set_var($value, $value, gettype($value), true);
};
- $get_parameters = $phpbb_request->get_super_global(phpbb_request_interface::GET);
- $post_parameters = $phpbb_request->get_super_global(phpbb_request_interface::POST);
- $server_parameters = $phpbb_request->get_super_global(phpbb_request_interface::SERVER);
- $files_parameters = $phpbb_request->get_super_global(phpbb_request_interface::FILES);
- $cookie_parameters = $phpbb_request->get_super_global(phpbb_request_interface::COOKIE);
+ $get_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::GET);
+ $post_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::POST);
+ $server_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::SERVER);
+ $files_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::FILES);
+ $cookie_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::COOKIE);
array_walk_recursive($get_parameters, $sanitizer);
array_walk_recursive($post_parameters, $sanitizer);