dev/src/GetComponentsTrait.php
private function getManifest($manifestPath)
    {
        if (self::$__manifest) {
            $manifest = self::$__manifest;
        } else {
            $manifest = json_decode(file_get_contents($manifestPath), true);

            if (json_last_error() !== JSON_ERROR_NONE) {
                throw new \RuntimeException('Could not decode manifest json');
            }

            self::$__manifest = $manifest;
        }

        return $manifest;
    }
private function getManifest($manifestPath)
    {
        if (self::$__manifest) {
            $manifest = self::$__manifest;
        } else {
            $manifest = json_decode(file_get_contents($manifestPath), true);

            if (json_last_error() !== JSON_ERROR_NONE) {
                throw new \RuntimeException('Could not decode manifest json');
            }

            self::$__manifest = $manifest;
        }

        return $manifest;
    }
private function getManifest ( $ manifestPath ) { if ( self :: $ __manifest ) { $ manifest = self :: $ __manifest ; } else { $ manifest = json_decode ( file_get_contents ( $ manifestPath ) , true ) ; if ( json_last_error ( ) !== JSON_ERROR_NONE ) { throw new \ RuntimeException ( 'Could not decode manifest json' ) ; } self :: $ __manifest = $ manifest ; } return $ manifest ; }
Read the given file as a package manifest.

@param string $manifestPath
@return array
Read the given file as a package manifest .