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); }
public final function __construct($config = []) { $this->config = b::bucket('create', $config); $this->init(); }