public static function getFile($fileName)
    {
        $filesystem = new Filesystem();
        $file       = $filesystem->normalizePath(__DIR__ . '/../' . $fileName);

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

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

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

        return $file;
    }
public static function getFile ( $ fileName ) { $ filesystem = new Filesystem ( ) ; $ file = $ filesystem -> normalizePath ( __DIR__ . '/../' . $ fileName ) ; if ( ! file_exists ( $ file ) ) { throw new RuntimeException ( sprintf ( 'Could not find a matching file for file name "%1$s".' , $ fileName ) ) ; } return $ file ; }
Get a file path from a project-root-relative file name.

@since 0.1.0

@param string $fileName Project-root-relative file name to get the path of.

@return string Complete path to the requested file.
@throws RuntimeException If the file could not be matched.
Get a file path from a project - root - relative file name .