public function getConfigOption(array $path)
 {
     $origPath = $path;
     $conf = $this->overrides;
     while (($part = array_shift($path)) !== null) {
         if (isset($conf->{$part})) {
             $conf = $conf->{$part};
         } else {
             return parent::getConfigOption($origPath);
         }
     }
     if (is_array($conf) || $conf instanceof \stdClass) {
         $conf = array_merge((array) $conf, (array) parent::getConfigOption($origPath));
         if ($conf instanceof \stdClass) {
             $conf = (object) $conf;
         }
     }
     return $conf;
 }