/** * Get the specified configuration value. * * @param string $key * @param mixed $default * @return mixed */ public function get($key = '', $default = null) { list($group, $item) = $this->parseKey($key); return isset($this->items[$group]) ? BoxUtil::array_get($this->items[$group], $item, $default) : $default; }
/** * Get the specified configuration value. * * @param string $key * @param mixed $default * @return mixed */ public function get($key = '', $default = null) { list($group, $item) = $this->parseKey($key); $this->load($group); return BoxUtil::array_get($this->items[$group], $item, $default); }
/** * Get the specified configuration value. * * @param string $key * @param mixed $default * @return mixed */ public function getScript($key = '', $default = null) { list($driver, $item) = $this->parseScriptKey($key); $this->loadScript($driver); return BoxUtil::array_get($this->itemsScript[$driver], $item, $default); }