Removed methods duplicated from parent class
This commit is contained in:
parent
7e4f4dcdf9
commit
0550bef14d
@ -31,7 +31,7 @@ class AttributeBag implements AttributeBagInterface
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param type $storageKey The key used to store flashes in the session.
|
||||
* @param string $storageKey The key used to store flashes in the session.
|
||||
*/
|
||||
public function __construct($storageKey = '_sf2_attributes')
|
||||
{
|
||||
|
@ -29,8 +29,8 @@ class NamespacedAttributeBag extends AttributeBag
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param type $storageKey Session storage key.
|
||||
* @param type $namespaceCharacter Namespace character to use in keys.
|
||||
* @param string $storageKey Session storage key.
|
||||
* @param string $namespaceCharacter Namespace character to use in keys.
|
||||
*/
|
||||
public function __construct($storageKey = '_sf2_attributes', $namespaceCharacter = '/')
|
||||
{
|
||||
@ -70,25 +70,6 @@ class NamespacedAttributeBag extends AttributeBag
|
||||
$attributes[$name] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function all()
|
||||
{
|
||||
return $this->attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function replace(array $attributes)
|
||||
{
|
||||
$this->attributes = array();
|
||||
foreach ($attributes as $key => $value) {
|
||||
$this->set($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@ -105,17 +86,6 @@ class NamespacedAttributeBag extends AttributeBag
|
||||
return $retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function clear()
|
||||
{
|
||||
$return = $this->attributes;
|
||||
$this->attributes = array();
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves a path in attributes property and returns it as a reference.
|
||||
*
|
||||
|
Reference in New Issue
Block a user