Components_Pear_Environment::setLocation PHP Method

setLocation() public method

Set the path to the install location.
public setLocation ( string $base_directory, string $config_file ) : null
$base_directory string The base directory for the PEAR install location.
$config_file string The name of the configuration file.
return null
    public function setLocation($base_directory, $config_file)
    {
        $this->_base_directory = $base_directory;
        if (!file_exists($this->_base_directory)) {
            throw new Components_Exception(sprintf('The path to the install location (%s) does not exist! Create it first.', $this->_base_directory));
        }
        $this->_config_file = $config_file;
    }