src/Foundation/Application.php
public function rootPath()
    {
        return ('phar:' === substr($this->basePath, 0, 5)) ? dirname(str_replace('phar://', '', $this->basePath)) : $this->basePath;
    }
public function rootPath()
    {
        return ('phar:' === substr($this->basePath, 0, 5)) ? dirname(str_replace('phar://', '', $this->basePath)) : $this->basePath;
    }
public function rootPath ( ) { return ( 'phar:' === substr ( $ this -> basePath , 0 , 5 ) ) ? dirname ( str_replace ( 'phar://' , '' , $ this -> basePath ) ) : $ this -> basePath ; }
Get the path of root

@return string
Get the path of root