Skip to content

Commit

Permalink
Manifest method middlewares (#13)
Browse files Browse the repository at this point in the history
 Fix DefaultNamesHelper
  • Loading branch information
petr-buchyn authored Dec 9, 2020
1 parent 45cd73b commit 5df720d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Helper/Names/DefaultNamesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ class DefaultNamesHelper implements NamesHelperInterface

public function fullName(string $shortName): string
{
return sprintf(
'%s-%s-%s',
$this->env,
$this->app->manifestNamePrefix(),
$shortName,
);
$name = $this->env;
$prefix = $this->app->manifestNamePrefix();
if ($prefix) {
$name .= '-'.$prefix;
}
$name .= '-'.$shortName;

return $name;
}

public function byManifestClass(string $manifestClass): string
Expand Down

0 comments on commit 5df720d

Please sign in to comment.