function TastyIgniterInstaller::inflectPackageVars
Format package name.
Cut off leading 'ti-ext-' or 'ti-theme-' if present. Strip vendor name of characters that is not alphanumeric or an underscore
Overrides BaseInstaller::inflectPackageVars
File
-
vendor/
composer/ installers/ src/ Composer/ Installers/ TastyIgniterInstaller.php, line 21
Class
Namespace
Composer\InstallersCode
public function inflectPackageVars(array $vars) : array {
$extra = $this->package
->getExtra();
if ($vars['type'] === 'tastyigniter-module') {
return $this->inflectModuleVars($vars);
}
if ($vars['type'] === 'tastyigniter-extension') {
return $this->inflectExtensionVars($vars, $extra);
}
if ($vars['type'] === 'tastyigniter-theme') {
return $this->inflectThemeVars($vars, $extra);
}
return $vars;
}