public function setThemePath($generalConfig)
    {
        $themeDir = isset($generalConfig['theme']) ? '/' . $generalConfig['theme'] : '';
        $themePath = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';
        $themeUrl = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';

        // See if the user has set a theme path otherwise use the default
        if (!isset($generalConfig['theme_path'])) {
            $this->setPath('themepath', $this->getPath('themebase') . $themeDir);
            $this->setUrl('theme', $themeUrl . $themeDir . '/');
        } else {
            Deprecated::warn('Config option "theme_path"', 3.3, 'Modify the "themes" path in .bolt.yml instead.');

            $this->setPath('themepath', $this->getPath('root') . $themePath . $themeDir);
            $this->setUrl('theme', $themeUrl . $themeDir . '/');
        }
    }
public function setThemePath($generalConfig)
    {
        $themeDir = isset($generalConfig['theme']) ? '/' . $generalConfig['theme'] : '';
        $themePath = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';
        $themeUrl = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';

        // See if the user has set a theme path otherwise use the default
        if (!isset($generalConfig['theme_path'])) {
            $this->setPath('themepath', $this->getPath('themebase') . $themeDir);
            $this->setUrl('theme', $themeUrl . $themeDir . '/');
        } else {
            Deprecated::warn('Config option "theme_path"', 3.3, 'Modify the "themes" path in .bolt.yml instead.');

            $this->setPath('themepath', $this->getPath('root') . $themePath . $themeDir);
            $this->setUrl('theme', $themeUrl . $themeDir . '/');
        }
    }
public function setThemePath ( $ generalConfig ) { $ themeDir = isset ( $ generalConfig [ 'theme' ] ) ? '/' . $ generalConfig [ 'theme' ] : '' ; $ themePath = isset ( $ generalConfig [ 'theme_path' ] ) ? $ generalConfig [ 'theme_path' ] : '/theme' ; $ themeUrl = isset ( $ generalConfig [ 'theme_path' ] ) ? $ generalConfig [ 'theme_path' ] : '/theme' ; // See if the user has set a theme path otherwise use the default if ( ! isset ( $ generalConfig [ 'theme_path' ] ) ) { $ this -> setPath ( 'themepath' , $ this -> getPath ( 'themebase' ) . $ themeDir ) ; $ this -> setUrl ( 'theme' , $ themeUrl . $ themeDir . '/' ) ; } else { Deprecated :: warn ( 'Config option "theme_path"' , 3.3 , 'Modify the "themes" path in .bolt.yml instead.' ) ; $ this -> setPath ( 'themepath' , $ this -> getPath ( 'root' ) . $ themePath . $ themeDir ) ; $ this -> setUrl ( 'theme' , $ themeUrl . $ themeDir . '/' ) ; } }
This currently gets special treatment because of the processing order.
The theme path is needed before the app has constructed, so this is a shortcut to
allow the Application constructor to pre-provide a theme path.

@param array $generalConfig
This currently gets special treatment because of the processing order . The theme path is needed before the app has constructed so this is a shortcut to allow the Application constructor to pre - provide a theme path .