private function setUrls($baseDirectory, $type)
    {
        switch ($type) {
            case 'wordpress-plugin':
                $pluginUrl = plugins_url(basename($baseDirectory));
                $baseUrl = Url::addBackSlash($pluginUrl);
                break;
            default:
                $baseUrl = Url::getBaseUrl();
                break;
        }

        $this->setOption('ROOT_URL', $baseUrl);
        $this->setOption('PUBLIC_URL', $baseUrl . 'public/');
        $this->setOption('MODULES_URL', $baseUrl . 'modules/');
        $this->setOption('PLUGINS_URL', $baseUrl . 'plugins/');
        $this->setOption('TEMPLATES_URL', $baseUrl . 'templates/');
        $this->setOption('COMPONENTS_URL', $baseUrl . 'components/');
    }
private function setUrls($baseDirectory, $type)
    {
        switch ($type) {
            case 'wordpress-plugin':
                $pluginUrl = plugins_url(basename($baseDirectory));
                $baseUrl = Url::addBackSlash($pluginUrl);
                break;
            default:
                $baseUrl = Url::getBaseUrl();
                break;
        }

        $this->setOption('ROOT_URL', $baseUrl);
        $this->setOption('PUBLIC_URL', $baseUrl . 'public/');
        $this->setOption('MODULES_URL', $baseUrl . 'modules/');
        $this->setOption('PLUGINS_URL', $baseUrl . 'plugins/');
        $this->setOption('TEMPLATES_URL', $baseUrl . 'templates/');
        $this->setOption('COMPONENTS_URL', $baseUrl . 'components/');
    }
private function setUrls ( $ baseDirectory , $ type ) { switch ( $ type ) { case 'wordpress-plugin' : $ pluginUrl = plugins_url ( basename ( $ baseDirectory ) ) ; $ baseUrl = Url :: addBackSlash ( $ pluginUrl ) ; break ; default : $ baseUrl = Url :: getBaseUrl ( ) ; break ; } $ this -> setOption ( 'ROOT_URL' , $ baseUrl ) ; $ this -> setOption ( 'PUBLIC_URL' , $ baseUrl . 'public/' ) ; $ this -> setOption ( 'MODULES_URL' , $ baseUrl . 'modules/' ) ; $ this -> setOption ( 'PLUGINS_URL' , $ baseUrl . 'plugins/' ) ; $ this -> setOption ( 'TEMPLATES_URL' , $ baseUrl . 'templates/' ) ; $ this -> setOption ( 'COMPONENTS_URL' , $ baseUrl . 'components/' ) ; }
Set url depending where the framework is launched.

@since 1.0.1

@param string $baseDirectory → directory where class is instantiated
@param string $type          → application type
Set url depending where the framework is launched .