src/Dev/Install/InstallEnvironmentAware.php
protected function initBaseDir($basePath)
    {
        if ($basePath) {
            $this->setBaseDir($basePath);
        } elseif (defined('BASE_PATH')) {
            $this->setBaseDir(BASE_PATH);
        } else {
            throw new BadMethodCallException("No BASE_PATH defined");
        }
    }
protected function initBaseDir($basePath)
    {
        if ($basePath) {
            $this->setBaseDir($basePath);
        } elseif (defined('BASE_PATH')) {
            $this->setBaseDir(BASE_PATH);
        } else {
            throw new BadMethodCallException("No BASE_PATH defined");
        }
    }
protected function initBaseDir ( $ basePath ) { if ( $ basePath ) { $ this -> setBaseDir ( $ basePath ) ; } elseif ( defined ( 'BASE_PATH' ) ) { $ this -> setBaseDir ( BASE_PATH ) ; } else { throw new BadMethodCallException ( "No BASE_PATH defined" ) ; } }
Init base path, or guess if able

@param string|null $basePath
Init base path or guess if able