public function addTheme(ThemeInterface $theme, $key, $default = false)
    {
        $this->themes[$key] = $theme;

        if ($default) {
            $this->default = $key;
        }

        return true;
    }
public function addTheme(ThemeInterface $theme, $key, $default = false)
    {
        $this->themes[$key] = $theme;

        if ($default) {
            $this->default = $key;
        }

        return true;
    }
public function addTheme ( ThemeInterface $ theme , $ key , $ default = false ) { $ this -> themes [ $ key ] = $ theme ; if ( $ default ) { $ this -> default = $ key ; } return true ; }
Adds a theme.

@param ThemeInterface $theme A ThemeInterface instance
@param $key
Adds a theme .