You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Bridge/Nette/DI/AssetExtension.php
+6-6
Original file line number
Diff line number
Diff line change
@@ -53,11 +53,11 @@ public function getConfigSchema(): Schema
53
53
'json_manifest_path' => Expect::string()
54
54
->nullable(),
55
55
'strict_mode' => Expect::bool(FALSE),
56
-
])->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
56
+
])->castTo(PackageConfig::class)
57
+
->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
57
58
->assert($assertVersionStrategyAndVersionCombination, 'You cannot use both \'version_strategy\' and \'version\' at the same time.')
58
59
->assert($assertVersionStrategyAndJsonManifestPathCombination, 'You cannot use both \'version_strategy\' and \'json_manifest_path\' at the same time.')
59
-
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.')
60
-
->castTo(PackageConfig::class);
60
+
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.');
61
61
62
62
return Expect::structure([
63
63
'base_path' => Expect::string(''),
@@ -75,11 +75,11 @@ public function getConfigSchema(): Schema
])->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
78
+
])->castTo(AssetConfig::class)
79
+
->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
79
80
->assert($assertVersionStrategyAndVersionCombination, 'You cannot use both \'version_strategy\' and \'version\' at the same time.')
80
81
->assert($assertVersionStrategyAndJsonManifestPathCombination, 'You cannot use both \'version_strategy\' and \'json_manifest_path\' at the same time.')
81
-
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.')
82
-
->castTo(AssetConfig::class);
82
+
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.');
0 commit comments