public static function getRootFolder()
    {
        $filesystem = new Filesystem();
        $folder     = $filesystem->normalizePath(__DIR__ . '/../');

        if (! is_dir($folder)) {
            throw new RuntimeException(
                sprintf(
                    'Could not find a matching folder for folder name "%1$s".',
                    $folder
                )
            );
        }

        return $folder;
    }
public static function getRootFolder()
    {
        $filesystem = new Filesystem();
        $folder     = $filesystem->normalizePath(__DIR__ . '/../');

        if (! is_dir($folder)) {
            throw new RuntimeException(
                sprintf(
                    'Could not find a matching folder for folder name "%1$s".',
                    $folder
                )
            );
        }

        return $folder;
    }
public static function getRootFolder ( ) { $ filesystem = new Filesystem ( ) ; $ folder = $ filesystem -> normalizePath ( __DIR__ . '/../' ) ; if ( ! is_dir ( $ folder ) ) { throw new RuntimeException ( sprintf ( 'Could not find a matching folder for folder name "%1$s".' , $ folder ) ) ; } return $ folder ; }
Get the path to the package's root folder.

@since 0.1.0

@return string Complete path to the root folder.
@throws RuntimeException If the folder could not be matched.
Get the path to the package s root folder .