src/Plugin.php
public function getRootDirectory()
    {
        $config = $this->composer->getConfig();
        
        return str_replace($config->get('vendor-dir', Config::RELATIVE_PATHS), '', $config->get('vendor-dir'));
    }
public function getRootDirectory()
    {
        $config = $this->composer->getConfig();
        
        return str_replace($config->get('vendor-dir', Config::RELATIVE_PATHS), '', $config->get('vendor-dir'));
    }
public function getRootDirectory ( ) { $ config = $ this -> composer -> getConfig ( ) ; return str_replace ( $ config -> get ( 'vendor-dir' , Config :: RELATIVE_PATHS ) , '' , $ config -> get ( 'vendor-dir' ) ) ; }
Get the root directory.

@return string
Get the root directory .