8000 Merge branch '6.3' into 6.4 · symfony/symfony@62e115f · GitHub
[go: up one dir, main page]

Skip to content

Commit 62e115f

Browse files
Merge branch '6.3' into 6.4
* 6.3: [AssetMapper] Improve the error message when a downloaded file is missing [HtmlSanitizer] Allow league/uri v7
2 parents c24906f + 897a054 commit 62e115f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"egulias/email-validator": "^2.1.10|^3.1|^4",
139139
"guzzlehttp/promises": "^1.4",
140140
"league/html-to-markdown": "^5.0",
141+
"league/uri": "^6.5|^7.0",
141142
"masterminds/html5": "^2.7.2",
142143
"monolog/monolog": "^1.25.1|^2",
143144
"nyholm/psr7": "^1.0",

src/Symfony/Component/AssetMapper/ImportMap/ImportMapManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ private function convertEntriesToImports(array $entries): array
411411

412412
if (null !== $entryOptions->path) {
413413
if (!$asset = $this->assetMapper->getAsset($entryOptions->path)) {
414+
if ($entryOptions->isDownloaded) {
415+
throw new \InvalidArgumentException(sprintf('The "%s" downloaded asset is missing. Run "php bin/console importmap:require "%s" --download".', $entryOptions->path, $entryOptions->importName));
416+
}
417+
414418
throw new \InvalidArgumentException(sprintf('The asset "%s" mentioned in "%s" cannot be found in any asset map paths.', $entryOptions->path, basename($this->importMapConfigPath)));
415419
}
416420
$path = $asset->publicPath;

src/Symfony/Component/HtmlSanitizer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=8.1",
2020
"ext-dom": "*",
21-
"league/uri": "^6.5",
21+
"league/uri": "^6.5|^7.0",
2222
"masterminds/html5": "^2.7.2"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)
0