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