8000 Merge branch '5.2' into 5.x · symfony/symfony@e53bb8b · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e53bb8b

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Fix #36973: Command description consistency Render email once
2 parents 5795384 + 7ed3d36 commit e53bb8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+92
-62
lines changed

src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ServerLogCommand extends Command
3434
private $handler;
3535

3636
protected static $defaultName = 'server:log';
37-
protected static $defaultDescription = 'Starts a log server that displays logs in real time';
37+
protected static $defaultDescription = 'Start a log server that displays logs in real time';
3838

3939
public function isEnabled()
4040
{

src/Symfony/Bridge/Twig/Command/DebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
class DebugCommand extends Command
3434
{
3535
protected static $defaultName = 'debug:twig';
36-
protected static $defaultDescription = 'Shows a list of twig functions, filters, globals and tests';
36+
protected static $defaultDescription = 'Show a list of twig functions, filters, globals and tests';
3737

3838
private $twig;
3939
private $projectDir;

src/Symfony/Bridge/Twig/Command/LintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
class LintCommand extends Command
3636
{
3737
protected static $defaultName = 'lint:twig';
38-
protected static $defaultDescription = 'Lints a Twig template and outputs encountered errors';
38+
protected static $defaultDescription = 'Lint a Twig template and outputs encountered errors';
3939

4040
private $twig;
4141

src/Symfony/Bridge/Twig/Mime/BodyRenderer.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ public function render(Message $message): void
4646
}
4747

4848
$messageContext = $message->getContext();
49+
50+
$previousRenderingKey = $messageContext[__CLASS__] ?? null;
51+
unset($messageContext[__CLASS__]);
52+
$currentRenderingKey = md5(serialize([$messageContext, $message->getTextTemplate(), $message->getHtmlTemplate()]));
53+
if ($previousRenderingKey === $currentRenderingKey) {
54+
return;
55+
}
56+
4957
if (isset($messageContext['email'])) {
5058
throw new InvalidArgumentException(sprintf('A "%s" context cannot have an "email" entry as this is a reserved variable.', get_debug_type($message)));
5159
}
@@ -66,6 +74,7 @@ public function render(Message $message): void
6674
if (!$message->getTextBody() && null !== $html = $message->getHtmlBody()) {
6775
$message->text($this->convertHtmlToText(\is_resource($html) ? stream_get_contents($html) : $html));
6876
}
77+
$message->context($message->getContext() + [__CLASS__ => $currentRenderingKey]);
6978
}
7079

7180
private function convertHtmlToText(string $html): string

src/Symfony/Bridge/Twig/Tests/Mime/BodyRendererTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,27 @@ public function testRenderWithContextReservedEmailEntry()
7979
$this->prepareEmail('Text', '', ['email' => 'reserved!']);
8080
}
8181

82+
public function testRenderedOnce()
83+
{
84+
$twig = new Environment(new ArrayLoader([
85+
'text' => 'Text',
86+
]));
87+
$renderer = new BodyRenderer($twig);
88+
$email = (new TemplatedEmail())
89+
->to('fabien@symfony.com')
90+
->from('helene@symfony.com')
91+
;
92+
$email->textTemplate('text');
93+
94+
$renderer->render($email);
95+
$this->assertEquals('Text', $email->getTextBody());
96+
97+
$email->text('reset');
98+
99+
$renderer->render($email);
100+
$this->assertEquals('reset', $email->getTextBody());
101+
}
102+
82103
private function prepareEmail(?string $text, ?string $html, array $context = []): TemplatedEmail
83104
{
84105
$twig = new Environment(new ArrayLoader([

src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class AboutCommand extends Command
3131
{
3232
protected static $defaultName = 'about';
33-
protected static $defaultDescription = 'Displays information about the current project';
33+
protected static $defaultDescription = 'Display information about the current project';
3434

3535
/**
3636
* {@inheritdoc}

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AssetsInstallCommand extends Command
4040
public const METHOD_RELATIVE_SYMLINK = 'relative symlink';
4141

4242
protected static $defaultName = 'assets:install';
43-
protected static $defaultDescription = 'Installs bundles web assets under a public directory';
43+
protected static $defaultDescription = 'Install bundle\'s web assets under a public directory';
4444

4545
private $filesystem;
4646
private $projectDir;
@@ -62,7 +62,7 @@ protected function configure()
6262
->setDefinition([
6363
new InputArgument('target', InputArgument::OPTIONAL, 'The target directory', null),
6464
])
65-
->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlinks the assets instead of copying it')
65+
->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlink the assets instead of copying them')
6666
->addOption('relative', null, InputOption::VALUE_NONE, 'Make relative symlinks')
6767
->addOption('no-cleanup', null, InputOption::VALUE_NONE, 'Do not remove the assets of the bundles that no longer exist')
6868
->setDescription(self::$defaultDescription)

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class CacheClearCommand extends Command
3737
{
3838
protected static $defaultName = 'cache:clear';
39-
protected static $defaultDescription = 'Clears the cache';
39+
protected static $defaultDescription = 'Clear the cache';
4040

4141
private $cacheClearer;
4242
private $filesystem;

src/Symfony/Bundle/FrameworkBundle/Command/CachePoolClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
final class CachePoolClearCommand extends Command
2929
{
3030
protected static $defaultName = 'cache:pool:clear';
31-
protected static $defaultDescription = 'Clears cache pools';
31+
protected static $defaultDescription = 'Clear cache pools';
3232

3333
private $poolClearer;
3434

src/Symfony/Bundle/FrameworkBundle/Command/CachePoolDeleteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
final class CachePoolDeleteCommand extends Command
2727
{
2828
protected static $defaultName = 'cache:pool:delete';
29-
protected static $defaultDescription = 'Deletes an item from a cache pool';
29+
protected static $defaultDescription = 'Delete an item from a cache pool';
3030

3131
private $poolClearer;
3232

src/Symfony/Bundle/FrameworkBundle/Command/CachePoolPruneCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
final class CachePoolPruneCommand extends Command
2626
{
2727
protected static $defaultName = 'cache:pool:prune';
28-
protected static $defaultDescription = 'Prunes cache pools';
28+
protected static $defaultDescription = 'Prune cache pools';
2929

3030
private $pools;
3131

src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class CacheWarmupCommand extends Command
3030
{
3131
protected static $defaultName = 'cache:warmup';
32-
protected static $defaultDescription = 'Warms up an empty cache';
32+
protected static $defaultDescription = 'Warm up an empty cache';
3333

3434
private $cacheWarmer;
3535

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
class ConfigDebugCommand extends AbstractConfigCommand
3434
{
3535
protected static $defaultName = 'debug:config';
36-
protected static $defaultDescription = 'Dumps the current configuration for an extension';
36+
protected static $defaultDescription = 'Dump the current configuration for an extension';
3737

3838
/**
3939
* {@inheritdoc}

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class ConfigDumpReferenceCommand extends AbstractConfigCommand
3737
{
3838
protected static $defaultName = 'config:dump-reference';
39-
protected static $defaultDescription = 'Dumps the default configuration for an extension';
39+
protected static $defaultDescription = 'Dump the default configuration for an extension';
4040

4141
/**
4242
* {@inheritdoc}

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ContainerDebugCommand extends Command
3535
use BuildDebugContainerTrait;
3636

3737
protected static $defaultName = 'debug:container';
38-
protected static $defaultDescription = 'Displays current services for an application';
38+
protected static $defaultDescription = 'Display current services for an application';
3939

4040
/**
4141
* {@inheritdoc}
@@ -45,18 +45,18 @@ protected function configure()
4545
$this
4646
->setDefinition([
4747
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
48-
new InputOption('show-arguments', null, InputOption::VALUE_NONE, 'Used to show arguments in services'),
49-
new InputOption('show-hidden', null, InputOption::VALUE_NONE, 'Used to show hidden (internal) services'),
50-
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Shows all services with a specific tag'),
51-
new InputOption('tags', null, InputOption::VALUE_NONE, 'Displays tagged services for an application'),
52-
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Displays a specific parameter for an application'),
53-
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application'),
54-
new InputOption('types', null, InputOption::VALUE_NONE, 'Displays types (classes/interfaces) available in the container'),
55-
new InputOption('env-var', null, InputOption::VALUE_REQUIRED, 'Displays a specific environment variable used in the container'),
56-
new InputOption('env-vars', null, InputOption::VALUE_NONE, 'Displays environment variables used in the container'),
48+
new InputOption('show-arguments', null, InputOption::VALUE_NONE, 'Show arguments in services'),
49+
new InputOption('show-hidden', null, InputOption::VALUE_NONE, 'Show hidden (internal) services'),
50+
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Show all services with a specific tag'),
51+
new InputOption('tags', null, InputOption::VALUE_NONE, 'Display tagged services for an application'),
52+
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Display a specific parameter for an application'),
53+
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Display parameters for an application'),
54+
new InputOption('types', null, InputOption::VALUE_NONE, 'Display types (classes/interfaces) available in the container'),
55+
new InputOption('env-var', null, InputOption::VALUE_REQUIRED, 'Display a specific environment variable used in the container'),
56+
new InputOption('env-vars', null, InputOption::VALUE_NONE, 'Display environment variables used in the container'),
5757
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
5858
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw description'),
59-
new InputOption('deprecations', null, InputOption::VALUE_NONE, 'Displays deprecations generated when compiling and warming up the container'),
59+
new InputOption('deprecations', null, InputOption::VALUE_NONE, 'Display deprecations generated when compiling and warming up the container'),
6060
])
6161
->setDescription(self::$defaultDescription)
6262
->setHelp(<<<'EOF'

src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
final class ContainerLintCommand extends Command
3131
{
3232
protected static $defaultName = 'lint:container';
33-
protected static $defaultDescription = 'Ensures that arguments injected into services match type declarations';
33+
protected static $defaultDescription = 'Ensure that arguments injected into services match type declarations';
3434

3535
/**
3636
* @var ContainerBuilder

src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class DebugAutowiringCommand extends ContainerDebugCommand
3131
{
3232
protected static $defaultName = 'debug:autowiring';
33-
protected static $defaultDescription = 'Lists classes/interfaces you can use for autowiring';
33+
protected static $defaultDescription = 'List classes/interfaces you can use for autowiring';
3434

3535
private $supportsHref;
3636
private $fileLinkFormatter;

src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class EventDispatcherDebugCommand extends Command
3333
private const DEFAULT_DISPATCHER = 'event_dispatcher';
3434

3535
protected static $defaultName = 'debug:event-dispatcher';
36-
protected static $defaultDescription = 'Displays configured listeners for an application';
36+
protected static $defaultDescription = 'Display configured listeners for an application';
3737
private $dispatchers;
3838

3939
public function __construct(ContainerInterface $dispatchers)

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class RouterDebugCommand extends Command
3636
use BuildDebugContainerTrait;
3737

3838
protected static $defaultName = 'debug:router';
39-
protected static $defaultDescription = 'Displays current routes for an application';
39+
protected static $defaultDescription = 'Display current routes for an application';
4040
private $router;
4141
private $fileLinkFormatter;
4242

src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class RouterMatchCommand extends Command
3232
{
3333
protected static $defaultName = 'router:match';
34-
protected static $defaultDescription = 'Helps debug routes by simulating a path info match';
34+
protected static $defaultDescription = 'Help debug routes by simulating a path info match';
3535

3636
private $router;
3737
private $expressionLanguageProviders;
@@ -52,9 +52,9 @@ protected function configure()
5252
$this
5353
->setDefinition([
5454
new InputArgument('path_info', InputArgument::REQUIRED, 'A path info'),
55-
new InputOption('method', null, InputOption::VALUE_REQUIRED, 'Sets the HTTP method'),
56-
new InputOption('scheme', null, InputOption::VALUE_REQUIRED, 'Sets the URI scheme (usually http or https)'),
57-
new InputOption('host', null, InputOption::VALUE_REQUIRED, 'Sets the URI host'),
55+
new InputOption('method', null, InputOption::VALUE_REQUIRED, 'Set the HTTP method'),
56+
new InputOption('scheme', null, InputOption::VALUE_REQUIRED, 'Set the URI scheme (usually http or https)'),
57+
new InputOption('host', null, InputOption::VALUE_REQUIRED, 'Set the URI host'),
5858
])
5959
->setDescription(self::$defaultDescription)
6060
->setHelp(<<<'EOF'

src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
final class SecretsDecryptToLocalCommand extends Command
2828
{
2929
protected static $defaultName = 'secrets:decrypt-to-local';
30-
protected static $defaultDescription = 'Decrypts all secrets and stores them in the local vault';
30+
protected static $defaultDescription = 'Decrypt all secrets and stores them in the local vault';
3131

3232
private $vault;
3333
private $localVault;
@@ -44,7 +44,7 @@ protected function configure()
4444
{
4545
$this
4646
->setDescription(self::$defaultDescription)
47-
->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces overriding of secrets that already exist in the local vault')
47+
->addOption('force', 'f', InputOption::VALUE_NONE, 'Force overriding of secrets that already exist in the local vault')
4848
->setHelp(<<<'EOF'
4949
The <info>%command.name%</info> command decrypts all secrets and copies them in the local vault.
5050

src/Symfony/Bundle/FrameworkBundle/Command/SecretsEncryptFromLocalCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
final class SecretsEncryptFromLocalCommand extends Command
2727
{
2828
protected static $defaultName = 'secrets:encrypt-from-local';
29-
protected static $defaultDescription = 'Encrypts all local secrets to the vault';
29+
protected static $defaultDescription = 'Encrypt all local secrets to the vault';
3030

3131
private $vault;
3232
private $localVault;

src/Symfony/Bundle/FrameworkBundle/Command/SecretsGenerateKeysCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
final class SecretsGenerateKeysCommand extends Command
3030
{
3131
protected static $defaultName = 'secrets:generate-keys';
32-
protected static $defaultDescription = 'Generates new encryption keys';
32+
protected static $defaultDescription = 'Generate new encryption keys';
3333

3434
private $vault;
3535
private $localVault;
@@ -46,8 +46,8 @@ protected function configure()
4646
{
4747
$this
4848
->setDescription(self::$defaultDescription)
49-
->addOption('local', 'l', InputOption::VALUE_NONE, 'Updates the local vault.')
50-
->addOption('rotate', 'r', InputOption::VALUE_NONE, 'Re-encrypts existing secrets with the newly generated keys.')
49+
->addOption('local', 'l', InputOption::VALUE_NONE, 'Update the local vault.')
50+
->addOption('rotate', 'r', InputOption::VALUE_NONE, 'Re-encrypt existing secrets with the newly generated keys.')
5151
->setHelp(<<<'EOF'
5252
The <info>%command.name%</info> command generates a new encryption key.
5353

src/Symfony/Bundle/FrameworkBundle/Command/SecretsListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
final class SecretsListCommand extends Command
3131
{
3232
protected static $defaultName = 'secrets:list';
33-
protected static $defaultDescription = 'Lists all secrets';
33+
protected static $defaultDescription = 'List all secrets';
3434

3535
private $vault;
3636
private $localVault;

src/Symfony/Bundle/FrameworkBundle/Command/SecretsRemoveCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
final class SecretsRemoveCommand extends Command
3030
{
3131
protected static $defaultName = 'secrets:remove';
32-
protected static $defaultDescription = 'Removes a secret from the vault';
32+
protected static $defaultDescription = 'Remove a secret from the vault';
3333

3434
private $vault;
3535
private $localVault;
@@ -47,7 +47,7 @@ protected function configure()
4747
$this
4848
->setDescription(self::$defaultDescription)
4949
->addArgument('name', InputArgument::REQUIRED, 'The name of the secret')
50-
->addOption('local', 'l', InputOption::VALUE_NONE, 'Updates the local vault.')
50+
->addOption('local', 'l', InputOption::VALUE_NONE, 'Update the local vault.')
5151
->setHelp(<<<'EOF'
5252
The <info>%command.name%</info> command removes a secret from the vault.
5353

src/Symfony/Bundle/FrameworkBundle/Command/SecretsSetCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
final class SecretsSetCommand extends Command
3131
{
3232
protected static $defaultName = 'secrets:set';
33-
protected static $defaultDescription = 'Sets a secret in the vault';
33+
protected static $defaultDescription = 'Set a secret in the vault';
3434

3535
private $vault;
3636
private $localVault;
@@ -49,8 +49,8 @@ protected function configure()
4949
->setDescription(self::$defaultDescription)
5050
->addArgument('name', InputArgument::REQUIRED, 'The name of the secret')
5151
->addArgument('file', InputArgument::OPTIONAL, 'A file where to read the secret from or "-" for reading from STDIN')
52-
->addOption('local', 'l', InputOption::VALUE_NONE, 'Updates the local vault.')
53-
->addOption('random', 'r', InputOption::VALUE_OPTIONAL, 'Generates a random value.', false)
52+
->addOption('local', 'l', InputOption::VALUE_NONE, 'Update the local vault.')
53+
->addOption('random', 'r', InputOption::VALUE_OPTIONAL, 'Generate a random value.', false)
5454
->setHelp(<<<'EOF'
5555
The <info>%command.name%</info> command stores a secret in the vault.
5656

src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class TranslationDebugCommand extends Command
4747
public const MESSAGE_EQUALS_FALLBACK = 2;
4848

4949
protected static $defaultName = 'debug:translation';
50-
protected static $defaultDescription = 'Displays translation messages information';
50+
protected static $defaultDescription = 'Display translation messages information';
5151

5252
private $translator;
5353
private $reader;
@@ -80,8 +80,8 @@ protected function configure()
8080
new InputArgument('locale', InputArgument::REQUIRED, 'The locale'),
8181
new InputArgument('bundle', InputArgument::OPTIONAL, 'The bundle name or directory where to load the messages'),
8282
new InputOption('domain', null, InputOption::VALUE_OPTIONAL, 'The messages domain'),
83-
new InputOption('only-missing', null, InputOption::VALUE_NONE, 'Displays only missing messages'),
84-
new InputOption('only-unused', null, InputOption::VALUE_NONE, 'Displays only unused messages'),
83+
new InputOption('only-missing', null, InputOption::VALUE_NONE, 'Display only missing messages'),
84+
new InputOption('only-unused', null, InputOption::VALUE_NONE, 'Display only unused messages'),
8585
new InputOption('all', null, InputOption::VALUE_NONE, 'Load messages from all registered bundles'),
8686
])
8787
->setDescription(self::$defaultDescription)

src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class TranslationUpdateCommand extends Command
4242
private const SORT_ORDERS = [self::ASC, self::DESC];
4343

4444
protected static $defaultName = 'translation:update';
45-
protected static $defaultDescription = 'Updates the translation file';
45+
protected static $defaultDescription = 'Update the translation file';
4646

4747
private $writer;
4848
private $reader;

src/Symfony/Bundle/FrameworkBundle/Command/WorkflowDumpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function configure()
4141
->setDefinition([
4242
new InputArgument('name', InputArgument::REQUIRED, 'A workflow name'),
4343
new InputArgument('marking', InputArgument::IS_ARRAY, 'A marking (a list of places)'),
44-
new InputOption('label', 'l', InputOption::VALUE_REQUIRED, 'Labels a graph'),
44+
new InputOption('label', 'l', InputOption::VALUE_REQUIRED, 'Label a graph'),
4545
new InputOption('dump-format', null, InputOption::VALUE_REQUIRED, 'The dump format [dot|puml]', 'dot'),
4646
])
4747
->setDescription(self::$defaultDescription)

0 commit comments

Comments
 (0)
0