1 <?php
2 /* --------------------------------------------------------------
3 EnvironmentHttpContextFactory.inc.php 2015-03-12 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 MainFactory::load_class('AbstractHttpContextFactory');
13
14 /**
15 * Class EnvironmentHttpContextFactory
16 *
17 * @category System
18 * @package Http
19 * @subpackage Factories
20 * @extends AbstractHttpContextFactory
21 */
22 class EnvironmentHttpContextFactory extends AbstractHttpContextFactory
23 {
24 /**
25 * Creates a new HttpContext instance.
26 *
27 * @return HttpContextInterface
28 */
29 public function create()
30 {
31 return MainFactory::create('HttpContext', $_SERVER, $_GET, $_POST, $_COOKIE, $_SESSION);
32 }
33 }