Composer\Installers\Installer::findFrameworkType PHP Method

findFrameworkType() protected method

Finds a supported framework type if it exists and returns it
protected findFrameworkType ( string $type ) : string
$type string
return string
    protected function findFrameworkType($type)
    {
        $frameworkType = false;
        krsort($this->supportedTypes);
        foreach ($this->supportedTypes as $key => $val) {
            if ($key === substr($type, 0, strlen($key))) {
                $frameworkType = substr($type, 0, strlen($key));
                break;
            }
        }
        return $frameworkType;
    }