예제 #1
0
파일: a.php 프로젝트: boltphp/core
 public function get($key, $default = null)
 {
     if (!is_numeric($key)) {
         $key = '[' . trim(str_replace('.', '][', $key), '[]') . ']';
     }
     $value = $this->_access->getValue($this->_value, $key);
     return b::bucket('create', $value ?: $default);
 }
예제 #2
0
파일: middleware.php 프로젝트: boltphp/core
 public final function __construct($config = [])
 {
     $this->config = b::bucket('create', $config);
     $this->init();
 }