Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
symfony_request
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14namespace phpbb;
15
16use Symfony\Component\HttpFoundation\Request;
17
18/**
19 * WARNING: The Symfony request does not escape the input and should be used very carefully
20 * prefer the phpbb request as possible
21 */
22class symfony_request extends Request
23{
24    /**
25    * Constructor
26    *
27    * @param \phpbb\request\request_interface $phpbb_request
28    */
29    public function __construct(\phpbb\request\request_interface $phpbb_request)
30    {
31        $get_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::GET);
32        $post_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::POST);
33        $server_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::SERVER);
34        $files_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::FILES);
35        $cookie_parameters = $phpbb_request->get_super_global(\phpbb\request\request_interface::COOKIE);
36
37        parent::__construct($get_parameters, $post_parameters, array(), $cookie_parameters, $files_parameters, $server_parameters);
38    }
39}