Skip to content

Commit

Permalink
Transform vendor name for composer info (#317)
Browse files Browse the repository at this point in the history
resolves #193

Co-authored-by: Nico de Haen <mail@ndh-websolutions.de>
  • Loading branch information
liayn and nicodh committed Sep 28, 2020
1 parent e5180cd commit dc88dc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Domain/Model/Extension.php
Expand Up @@ -898,7 +898,7 @@ public function getComposerInfo(): array
{
$composerExtensionKey = strtolower(str_replace('_', '-', $this->extensionKey));
$info = [
'name' => strtolower($this->vendorName) . '/' . $composerExtensionKey,
'name' => strtolower(str_replace('_', '-', GeneralUtility::camelCaseToLowerCaseUnderscored($this->vendorName))) . '/' . $composerExtensionKey,
'type' => 'typo3-cms-extension',
'description' => $this->description,
'authors' => [],
Expand All @@ -916,7 +916,6 @@ public function getComposerInfo(): array
]
],
'replace' => [
strtolower($this->vendorName) . '/' . $composerExtensionKey => 'self.version',
'typo3-ter/' . $composerExtensionKey => 'self.version'
]
];
Expand Down

0 comments on commit dc88dc9

Please sign in to comment.