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()); }
/** * @param string $uri */ public function setCurrentRequestUri($uri) { $this->attributeBag->set('current_uri', $uri); }
protected function set($key, $value) { $this->attributeBag->set($this->provider . '/' . $key, $value); }
public function save(User $user) { $this->namespacedAttributeBag->set('user', $user); }