public function set($theme)
    {
        list($theme, $parent) = $this->resolveTheme($theme);

        if (! $this->isCurrently($theme->get('slug')) and (! is_null($this->getCurrent()))) {
            $this->removeRegisteredLocation();
        }

        $this->setCurrent($theme->get('slug'));
        
        $this->registerAutoload($this->format($theme->get('slug')));
        $this->addRegisteredLocation($theme, $parent);
        $this->symlinkPublicDirectory();
        $this->registerServiceProvider($this->format($theme->get('slug')));
    }
public function set($theme)
    {
        list($theme, $parent) = $this->resolveTheme($theme);

        if (! $this->isCurrently($theme->get('slug')) and (! is_null($this->getCurrent()))) {
            $this->removeRegisteredLocation();
        }

        $this->setCurrent($theme->get('slug'));
        
        $this->registerAutoload($this->format($theme->get('slug')));
        $this->addRegisteredLocation($theme, $parent);
        $this->symlinkPublicDirectory();
        $this->registerServiceProvider($this->format($theme->get('slug')));
    }
public function set ( $ theme ) { list ( $ theme , $ parent ) = $ this -> resolveTheme ( $ theme ) ; if ( ! $ this -> isCurrently ( $ theme -> get ( 'slug' ) ) and ( ! is_null ( $ this -> getCurrent ( ) ) ) ) { $ this -> removeRegisteredLocation ( ) ; } $ this -> setCurrent ( $ theme -> get ( 'slug' ) ) ; $ this -> registerAutoload ( $ this -> format ( $ theme -> get ( 'slug' ) ) ) ; $ this -> addRegisteredLocation ( $ theme , $ parent ) ; $ this -> symlinkPublicDirectory ( ) ; $ this -> registerServiceProvider ( $ this -> format ( $ theme -> get ( 'slug' ) ) ) ; }
Register and set the currently active theme.

@param  string  $theme
Register and set the currently active theme .