protected function Installer::findFrameworkType in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/src/Composer/Installers/Installer.php \Composer\Installers\Installer::findFrameworkType()
Finds a supported framework type if it exists and returns it
Parameters
string $type:
Return value
string
2 calls to Installer::findFrameworkType()
- Installer::getInstallPath in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php - Installer::supports in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php, line 127
Class
Namespace
Composer\InstallersCode
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;
}