Exemplo n.º 1
0
 public function getDefaultOption($keyOrPath = null)
 {
     return $keyOrPath === null ? $this->defaults : Utils::getPath($this->defaults, $keyOrPath);
 }
Exemplo n.º 2
0
 public function getConfig($keyOrPath = null)
 {
     if ($keyOrPath === null) {
         return $this->config;
     }
     if (strpos($keyOrPath, '/') === false) {
         return isset($this->config[$keyOrPath]) ? $this->config[$keyOrPath] : null;
     }
     return Utils::getPath($this->config, $keyOrPath);
 }