Skip to content

Commit fa28aff

Browse files
artyuumfabpot
authored andcommitted
Add "composer require..." in all exception messages when needed
1 parent 56bb1d4 commit fa28aff

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

Mime/NotificationEmail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(Headers $headers = null, AbstractPart $body = null)
5454
}
5555

5656
if ($missingPackages) {
57-
throw new \LogicException(sprintf('You cannot use "%s" if the "%s" Twig extension%s not available; try running "%s".', static::class, implode('" and "', $missingPackages), \count($missingPackages) > 1 ? 's are' : ' is', 'composer require '.implode(' ', array_keys($missingPackages))));
57+
throw new \LogicException(sprintf('You cannot use "%s" if the "%s" Twig extension%s not available. Try running "%s".', static::class, implode('" and "', $missingPackages), \count($missingPackages) > 1 ? 's are' : ' is', 'composer require '.implode(' ', array_keys($missingPackages))));
5858
}
5959

6060
parent::__construct($headers, $body);
@@ -88,7 +88,7 @@ public function markAsPublic(): static
8888
public function markdown(string $content): static
8989
{
9090
if (!class_exists(MarkdownExtension::class)) {
91-
throw new \LogicException(sprintf('You cannot use "%s" if the Markdown Twig extension is not available; try running "composer require twig/markdown-extra".', __METHOD__));
91+
throw new \LogicException(sprintf('You cannot use "%s" if the Markdown Twig extension is not available. Try running "composer require twig/markdown-extra".', __METHOD__));
9292
}
9393

9494
$this->context['markdown'] = true;

composer.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,6 @@
6464
"symfony/translation": "<5.4",
6565
"symfony/workflow": "<5.4"
6666
},
67-
"suggest": {
68-
"symfony/finder": "",
69-
"symfony/asset": "For using the AssetExtension",
70-
"symfony/form": "For using the FormExtension",
71-
"symfony/html-sanitizer": "For using the HtmlSanitizerExtension",
72-
"symfony/http-kernel": "For using the HttpKernelExtension",
73-
"symfony/routing": "For using the RoutingExtension",
74-
"symfony/translation": "For using the TranslationExtension",
75-
"symfony/yaml": "For using the YamlExtension",
76-
"symfony/security-core": "For using the SecurityExtension",
77-
"symfony/security-csrf": "For using the CsrfExtension",
78-
"symfony/security-http": "For using the LogoutUrlExtension",
79-
"symfony/stopwatch": "For using the StopwatchExtension",
80-
"symfony/var-dumper": "For using the DumpExtension",
81-
"symfony/expression-language": "For using the ExpressionExtension",
82-
"symfony/web-link": "For using the WebLinkExtension"
83-
},
8467
"autoload": {
8568
"psr-4": { "Symfony\\Bridge\\Twig\\": "" },
8669
"exclude-from-classmap": [

0 commit comments

Comments
 (0)