private function getRootDirectory()
    {
        static $root;

        if (!$root) {
            $working = getcwd();
            $myself  = __DIR__;

            if (0 === strpos($myself, $working)) {
                // Local installation, the working directory is the root
                $root = $working;
            } else {
                // Global installation, back up above the vendor/ directory
                $root = realpath($myself . '/../../../../../');
            }
        }

        return $root;
    }
private function getRootDirectory()
    {
        static $root;

        if (!$root) {
            $working = getcwd();
            $myself  = __DIR__;

            if (0 === strpos($myself, $working)) {
                // Local installation, the working directory is the root
                $root = $working;
            } else {
                // Global installation, back up above the vendor/ directory
                $root = realpath($myself . '/../../../../../');
            }
        }

        return $root;
    }
private function getRootDirectory ( ) { static $ root ; if ( ! $ root ) { $ working = getcwd ( ) ; $ myself = __DIR__ ; if ( 0 === strpos ( $ myself , $ working ) ) { // Local installation, the working directory is the root $ root = $ working ; } else { // Global installation, back up above the vendor/ directory $ root = realpath ( $ myself . '/../../../../../' ) ; } } return $ root ; }
Get the root directory for a process command.

@return string
Get the root directory for a process command .