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()); }
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(); }
/** * {@inheritdoc} */ public function set($name, $value) { parent::set($name, $value); $this->sessionStorage->save(); }