set() публичный Метод

set item to config
С версии: 2.2.0
public set ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item
Пример #1
0
 /**
  * testSetAndGet
  *
  * @since 2.2.0
  */
 public function testSetAndGet()
 {
     /* setup */
     Config::set('host', 'localhost');
     /* result */
     $result = Config::get('host');
     /* compare */
     $this->assertEquals('localhost', $result);
 }