extends Symfony Request

This commit is contained in:
Manuel Raynaud
2013-07-08 11:43:23 +02:00
parent 5da11c253e
commit a06771bea6
5 changed files with 26 additions and 4 deletions

View 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");
}
}

View File

@@ -21,7 +21,7 @@
/* */
/*************************************************************************************/
namespace Thelia\Core\Session;
namespace Thelia\Core\HttpFoundation\Session;
use Symfony\Component\HttpFoundation\Session\Session as BaseSession;

View File

@@ -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);

View File

@@ -1,6 +1,6 @@
<?php
use Symfony\Component\HttpFoundation\Request;
use Thelia\Core\Thelia;
use Thelia\Core\HttpFoundation\Request;
//use Symfony\Component\DependencyInjection;

View File

@@ -1,6 +1,6 @@
<?php
use Symfony\Component\HttpFoundation\Request;
use Thelia\Core\Thelia;
use Thelia\Core\HttpFoundation\Request;
//use Symfony\Component\DependencyInjection;