src/Foundation/ApplicationPathProvider.php
/**
	 * Returns an absolute path to the root directory.
	 *
	 * @param string $path
	 * @return string
	 */
Returns an absolute path to the root directory.
@param string $path
@return string
Returns an absolute path to the root directory . @param string $path @return string
public function root($path = '') {
		$key = 'root:' . $path;
		if (!isset($this->cache[$key])) {
			$path = ltrim($path, '\\/');
			$this->cache[$key] = Path::join($this->root, $path);
		}
		return $this->cache[$key];
	}
public function root ( $ path = '' ) { $ key = 'root:' . $ path ; if ( ! isset ( $ this -> cache [ $ key ] ) ) { $ path = ltrim ( $ path , '\\/' ) ; $ this -> cache [ $ key ] = Path :: join ( $ this -> root , $ path ) ; } return $ this -> cache [ $ key ] ; }
Returns an absolute path to the root directory.
Returns an absolute path to the root directory .