Skip to content

Commit d45cb8a

Browse files
committed
fix: use constant instead of hardcoded command name
1 parent 7ab8765 commit d45cb8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/Project/DeployProjectCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Ymir\Cli\ApiClient;
2020
use Ymir\Cli\CliConfiguration;
2121
use Ymir\Cli\Command\AbstractProjectCommand;
22+
use Ymir\Cli\Command\Email\CreateEmailIdentityCommand;
2223
use Ymir\Cli\Command\Environment\GetEnvironmentUrlCommand;
2324
use Ymir\Cli\Console\OutputStyle;
2425
use Ymir\Cli\Deployment\DeploymentStepInterface;
@@ -92,7 +93,7 @@ protected function perform(InputInterface $input, OutputStyle $output)
9293

9394
if ($this->apiClient->getEmailIdentities($this->cliConfiguration->getActiveTeamId())->isEmpty()) {
9495
$output->newLine();
95-
$output->writeln('<comment>Note:</comment> You cannot send emails using the "<comment>ymirsites.com</comment>" domain. Please use the "<comment>email:identity:create</comment>" command to add an email address or domain to use for sending emails.');
96+
$output->writeln(sprintf('<comment>Note:</comment> You cannot send emails using the "<comment>ymirsites.com</comment>" domain. Please use the "<comment>%s</comment>" command to add an email address or domain for sending emails.', CreateEmailIdentityCommand::NAME));
9697
}
9798
}
9899

0 commit comments

Comments
 (0)