From a06771bea605a7aed25e62fecf2f0b2429a895ff Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 8 Jul 2013 11:43:23 +0200 Subject: [PATCH] extends Symfony Request --- .../Thelia/Core/HttpFoundation/Request.php | 22 +++++++++++++++++++ .../{ => HttpFoundation}/Session/Session.php | 2 +- core/lib/Thelia/Core/TheliaHttpKernel.php | 2 +- web/index.php | 2 +- web/index_dev.php | 2 +- 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 core/lib/Thelia/Core/HttpFoundation/Request.php rename core/lib/Thelia/Core/{ => HttpFoundation}/Session/Session.php (97%) diff --git a/core/lib/Thelia/Core/HttpFoundation/Request.php b/core/lib/Thelia/Core/HttpFoundation/Request.php new file mode 100644 index 000000000..e2ed963d0 --- /dev/null +++ b/core/lib/Thelia/Core/HttpFoundation/Request.php @@ -0,0 +1,22 @@ +get("product_id"); + } + +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Session/Session.php b/core/lib/Thelia/Core/HttpFoundation/Session/Session.php similarity index 97% rename from core/lib/Thelia/Core/Session/Session.php rename to core/lib/Thelia/Core/HttpFoundation/Session/Session.php index d9074cd20..4bd079685 100644 --- a/core/lib/Thelia/Core/Session/Session.php +++ b/core/lib/Thelia/Core/HttpFoundation/Session/Session.php @@ -21,7 +21,7 @@ /* */ /*************************************************************************************/ -namespace Thelia\Core\Session; +namespace Thelia\Core\HttpFoundation\Session; use Symfony\Component\HttpFoundation\Session\Session as BaseSession; diff --git a/core/lib/Thelia/Core/TheliaHttpKernel.php b/core/lib/Thelia/Core/TheliaHttpKernel.php index 445ebd1fa..1b053d9de 100755 --- a/core/lib/Thelia/Core/TheliaHttpKernel.php +++ b/core/lib/Thelia/Core/TheliaHttpKernel.php @@ -196,7 +196,7 @@ class TheliaHttpKernel extends HttpKernel $storage->setOptions(json_decode(Model\ConfigQuery::read("session_config.config"))); } - $session = new \Thelia\Core\Session\Session($storage); + $session = new \Thelia\Core\HttpFoundation\Session\Session($storage); $session->start(); $request->setSession($session); diff --git a/web/index.php b/web/index.php index db8d8a51d..4d50cc633 100755 --- a/web/index.php +++ b/web/index.php @@ -1,6 +1,6 @@