src/Finder.php
public function resolveExtensionNamespace(string $manifest): array
    {
        $vendor = null;
        $package = null;
        $manifest = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $manifest);
        $fragment = \explode(DIRECTORY_SEPARATOR, $manifest);

        // Remove orchestra.json from fragment as we are only interested with
        // the two segment before it.
        if (\array_pop($fragment) == 'orchestra.json') {
            $package = \array_pop($fragment);
            $vendor = \array_pop($fragment);
        }

        return [$vendor, $package];
    }
public function resolveExtensionNamespace(string $manifest): array
    {
        $vendor = null;
        $package = null;
        $manifest = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $manifest);
        $fragment = \explode(DIRECTORY_SEPARATOR, $manifest);

        // Remove orchestra.json from fragment as we are only interested with
        // the two segment before it.
        if (\array_pop($fragment) == 'orchestra.json') {
            $package = \array_pop($fragment);
            $vendor = \array_pop($fragment);
        }

        return [$vendor, $package];
    }
Resolve extension namespace name from manifest.

@param  string  $manifest

@return array