protected function extractBasePath(\Composer\Config $config) {
        $reflectionClass = new \ReflectionClass($config);
        $reflectionProperty = $reflectionClass->getProperty('baseDir');
        $reflectionProperty->setAccessible(true);
        return $reflectionProperty->getValue($config);
    }
protected function extractBasePath(\Composer\Config $config) {
        $reflectionClass = new \ReflectionClass($config);
        $reflectionProperty = $reflectionClass->getProperty('baseDir');
        $reflectionProperty->setAccessible(true);
        return $reflectionProperty->getValue($config);
    }
protected function extractBasePath ( \ Composer \ Config $ config ) { $ reflectionClass = new \ ReflectionClass ( $ config ) ; $ reflectionProperty = $ reflectionClass -> getProperty ( 'baseDir' ) ; $ reflectionProperty -> setAccessible ( true ) ; return $ reflectionProperty -> getValue ( $ config ) ; }
Extracts the bas path out of composer config

@param \Composer\Config $config
@return mixed
Extracts the bas path out of composer config