コード例 #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();
 }