Example #1
0
 public function testAll()
 {
     $this->assertEquals($this->array, $this->bag->all());
     $this->bag->set('hello', 'fabien');
     $array = $this->array;
     $array['hello'] = 'fabien';
     $this->assertEquals($array, $this->bag->all());
 }
Example #2
0
 public function setEncrypted($key, $data)
 {
     $encryptedData = $this->encryptor->encrypt($data);
     $this->bag->set($key, $encryptedData);
 }
 /**
  * Set the feature to the enclosed status, under the given context
  *
  * @param ContextInterface $context
  * @param FeatureInterface $feature
  * @return void
  */
 public function setFeature(ContextInterface $context, FeatureInterface $feature)
 {
     $this->bag->set($feature->getName(), $feature->getConfiguration());
     //$this->session->save();
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function set($name, $value)
 {
     parent::set($name, $value);
     $this->sessionStorage->save();
 }