extends Symfony Request
This commit is contained in:
22
core/lib/Thelia/Core/HttpFoundation/Request.php
Normal file
22
core/lib/Thelia/Core/HttpFoundation/Request.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by JetBrains PhpStorm.
|
||||||
|
* User: manu
|
||||||
|
* Date: 08/07/13
|
||||||
|
* Time: 11:41
|
||||||
|
* To change this template use File | Settings | File Templates.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Thelia\Core\HttpFoundation;
|
||||||
|
|
||||||
|
use Symfony\Component\HttpFoundation\Request as BaseRequest;
|
||||||
|
|
||||||
|
|
||||||
|
class Request extends BaseRequest{
|
||||||
|
|
||||||
|
public function getProductId()
|
||||||
|
{
|
||||||
|
return $this->get("product_id");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
/* */
|
/* */
|
||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Session;
|
namespace Thelia\Core\HttpFoundation\Session;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Session\Session as BaseSession;
|
use Symfony\Component\HttpFoundation\Session\Session as BaseSession;
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ class TheliaHttpKernel extends HttpKernel
|
|||||||
$storage->setOptions(json_decode(Model\ConfigQuery::read("session_config.config")));
|
$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();
|
$session->start();
|
||||||
|
|
||||||
$request->setSession($session);
|
$request->setSession($session);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Thelia\Core\Thelia;
|
use Thelia\Core\Thelia;
|
||||||
|
use Thelia\Core\HttpFoundation\Request;
|
||||||
|
|
||||||
//use Symfony\Component\DependencyInjection;
|
//use Symfony\Component\DependencyInjection;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Thelia\Core\Thelia;
|
use Thelia\Core\Thelia;
|
||||||
|
use Thelia\Core\HttpFoundation\Request;
|
||||||
|
|
||||||
//use Symfony\Component\DependencyInjection;
|
//use Symfony\Component\DependencyInjection;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user