mirror of
https://github.com/symfony/ux-svelte.git
synced 2026-03-24 00:12:07 +01:00
Add support for Symfony 8
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.29.0
|
||||
|
||||
- Add Symfony 8 support
|
||||
|
||||
## 2.13.2
|
||||
|
||||
- Revert "Change JavaScript package to `type: module`"
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
"symfony/stimulus-bundle": "^2.9.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/asset-mapper": "^6.3|^7.0",
|
||||
"symfony/finder": "^5.4|^6.2|^7.0",
|
||||
"symfony/framework-bundle": "^5.4|^6.2|^7.0",
|
||||
"symfony/phpunit-bridge": "^5.4|^6.2|^7.0",
|
||||
"symfony/twig-bundle": "^5.4|^6.2|^7.0",
|
||||
"symfony/var-dumper": "^5.4|^6.2|^7.0"
|
||||
"symfony/asset-mapper": "^6.3|^7.0|^8.0",
|
||||
"symfony/finder": "^5.4|^6.2|^7.0|^8.0",
|
||||
"symfony/framework-bundle": "^5.4|^6.2|^7.0|^8.0",
|
||||
"symfony/phpunit-bridge": "^5.4|^6.2|^7.0|^8.0",
|
||||
"symfony/twig-bundle": "^5.4|^6.2|^7.0|^8.0",
|
||||
"symfony/var-dumper": "^5.4|^6.2|^7.0|^8.0"
|
||||
},
|
||||
"extra": {
|
||||
"thanks": {
|
||||
|
||||
@@ -31,7 +31,7 @@ use Symfony\UX\Svelte\Twig\SvelteComponentExtension;
|
||||
*/
|
||||
class SvelteExtension extends Extension implements PrependExtensionInterface, ConfigurationInterface
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
public function load(array $configs, ContainerBuilder $container): void
|
||||
{
|
||||
$configuration = $this->getConfiguration($configs, $container);
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
@@ -52,7 +52,7 @@ class SvelteExtension extends Extension implements PrependExtensionInterface, Co
|
||||
->addTag('asset_mapper.compiler', ['priority' => 100]);
|
||||
}
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
public function prepend(ContainerBuilder $container): void
|
||||
{
|
||||
if (!$this->isAssetMapperAvailable($container)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user