diff options
Diffstat (limited to 'UserFunctions/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php')
-rw-r--r-- | UserFunctions/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/UserFunctions/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php b/UserFunctions/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php deleted file mode 100644 index d37a77ae..00000000 --- a/UserFunctions/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -namespace Composer\Installers; - -/** - * Installer for Craft Plugins - */ -class CraftInstaller extends BaseInstaller -{ - const NAME_PREFIX = 'craft'; - const NAME_SUFFIX = 'plugin'; - - protected $locations = array( - 'plugin' => 'craft/plugins/{$name}/', - ); - - /** - * Strip `craft-` prefix and/or `-plugin` suffix from package names - * - * @param array $vars - * - * @return array - */ - final public function inflectPackageVars($vars) - { - return $this->inflectPluginVars($vars); - } - - private function inflectPluginVars($vars) - { - $vars['name'] = preg_replace('/-' . self::NAME_SUFFIX . '$/i', '', $vars['name']); - $vars['name'] = preg_replace('/^' . self::NAME_PREFIX . '-/i', '', $vars['name']); - - return $vars; - } -} |