[HttpFoundation] Fixed failing tests introduced in 8dd0c5641a

This commit is contained in:
Bernhard Schussek 2011-01-31 15:08:49 +01:00 committed by Fabien Potencier
parent 2c4355460e
commit 22c12e2c8f
2 changed files with 28 additions and 0 deletions

View File

@ -23,6 +23,20 @@ class FileBag extends ParameterBag
{
private $fileKeys = array('error', 'name', 'size', 'tmp_name', 'type');
/**
* Constructor.
*
* @param array $headers An array of HTTP files
*/
public function __construct(array $parameters = array())
{
// this line is not necessary, but including it avoids any stupid
// errors if we add code to the parent's constructor
parent::__construct();
$this->replace($parameters);
}
/**
* (non-PHPdoc)
* @see Symfony\Component\HttpFoundation\ParameterBag::replace()

View File

@ -20,6 +20,20 @@ class ResponseHeaderBag extends HeaderBag
{
protected $computedCacheControl = array();
/**
* Constructor.
*
* @param array $headers An array of HTTP headers
*/
public function __construct(array $parameters = array())
{
// this line is not necessary, but including it avoids any stupid
// errors if we add code to the parent's constructor
parent::__construct();
$this->replace($parameters);
}
/**
* {@inheritdoc}
*/