Updated to symfony 7.0

This commit is contained in:
Jeroen De Meerleer 2023-12-07 12:05:21 +01:00
parent 09ceadb170
commit 766622f0fc
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
14 changed files with 1630 additions and 1379 deletions

View File

@ -4,19 +4,19 @@
"minimum-stability": "stable", "minimum-stability": "stable",
"prefer-stable": true, "prefer-stable": true,
"require": { "require": {
"php": ">=8.1", "php": ">=8.2",
"ext-ctype": "*", "ext-ctype": "*",
"ext-iconv": "*", "ext-iconv": "*",
"erusev/parsedown": "^1.7", "erusev/parsedown": "^1.7",
"nelmio/security-bundle": "^3.0", "nelmio/security-bundle": "^3.1",
"symfony/console": "^v6.3", "symfony/console": "^7.0",
"symfony/dotenv": "^6.3", "symfony/dotenv": "^7.0",
"symfony/flex": "^2.2", "symfony/flex": "^2.3",
"symfony/framework-bundle": "^6.3", "symfony/framework-bundle": "^7.0",
"symfony/runtime": "^6.3", "symfony/runtime": "^7.0",
"symfony/twig-bundle": "^6.3", "symfony/twig-bundle": "^7.0",
"symfony/webpack-encore-bundle": "^2.0", "symfony/webpack-encore-bundle": "^2.1",
"symfony/yaml": "^6.3" "symfony/yaml": "^7.0"
}, },
"config": { "config": {
"allow-plugins": { "allow-plugins": {
@ -66,7 +66,11 @@
"extra": { "extra": {
"symfony": { "symfony": {
"allow-contrib": true, "allow-contrib": true,
"require": "^6.2" "require": "^7.0"
} }
},
"require-dev": {
"symfony/stopwatch": "^7.0",
"symfony/web-profiler-bundle": "^7.0"
} }
} }

1249
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -5,4 +5,5 @@ return [
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true], Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Nelmio\SecurityBundle\NelmioSecurityBundle::class => ['all' => true], Nelmio\SecurityBundle\NelmioSecurityBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
]; ];

View File

@ -50,4 +50,11 @@ nelmio_security:
- 'none' - 'none'
frame-ancestors: frame-ancestors:
- 'none' - 'none'
block-all-mixed-content: true block-all-mixed-content: true
when@dev:
nelmio_security:
csp:
enforce:
default-src:
- 'self'

View File

@ -0,0 +1,17 @@
when@dev:
web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler:
only_exceptions: false
collect_serializer_data: true
when@test:
web_profiler:
toolbar: false
intercept_redirects: false
framework:
profiler: { collect: false }

View File

@ -0,0 +1,8 @@
when@dev:
web_profiler_wdt:
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
prefix: /_wdt
web_profiler_profiler:
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
prefix: /_profiler

BIN
dev-certs/website.test.der Normal file

Binary file not shown.

View File

@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAodMtQp4Q1zb291bh+m3AXiIt5w2LbAlC/d/MsnPRYhvB6OGV
/G6sucbaX04WVZ6Qarp7xSqoDOdzNuYen5jNjURFGliSoYXPgzVBxJ0jodoHWDJA
CGvg0vpJ2XbRReK8/wj7t0pLqg04tBQlRzrH9uNxmjNt1jxN6MKSeiu22vowjX93
HpFevAo5XAe+akU0dXrV6TQ7wRe9/s4gtk0IeiGcvyApSL68qi1v3BOe4By+r5Mv
hx7dham7eo8ioXM6ASPRPl1iIMrr/9ccnOGkpivaWfCBoXqr2xcPkA1ZXuSKk+Jg
FAo+QbjvnxCPyWq38UlexJp2eBm8VKPh0kMeCQIDAQABAoIBABrH9i+WNTdI02pv
qIpna3Sot2wLo81HYxzc0uWdoUNZUKgX3VifgFpmfHFVXQDicwgWwLEKtDEehMTL
JLpI8Yu1hrIrgmjU2ljekXnWf7Ujfh+sgUhjghuobFxe+5dTRO/4LqBQ3WDRO1ci
FmFJaxqC3aQlasIPz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nSLz5hssza0Xy/mKfaIeg9ulJlFNQ3FHuvPUILzJDdvpt0E
kG5kkwqmM9CQ2uqITRk5egihJEwqeXVbS3XV+2Qk1njpTafl8O/WLhMbeTsEmRHV
eftxOXobzJNriNESqyDzHg5Qx99TfjxX5pl4tEmEmCBjKwPfvEIaZutFd33RIiWy
D2WrqFolVT0IHB4ideCbuoRhLwuJlHovVZt8HW601TsIvoPKj2tmMR4eBDWp
-----END CERTIFICATE-----

BIN
dev-certs/website.test.pfx Normal file

Binary file not shown.

1627
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,19 +14,18 @@
"@babel/core": "^7.23", "@babel/core": "^7.23",
"@babel/preset-env": "^7.23", "@babel/preset-env": "^7.23",
"@babel/plugin-proposal-class-properties": "^7.18", "@babel/plugin-proposal-class-properties": "^7.18",
"@symfony/webpack-encore": "^4.4", "@symfony/webpack-encore": "^4.5",
"core-js": "^3.33", "core-js": "^3.34",
"regenerator-runtime": "^0.14", "regenerator-runtime": "^0.14",
"sass": "^1.69", "sass": "^1.69",
"sass-loader": "^13.3", "sass-loader": "^13.3",
"webpack": "^5.88", "webpack": "^5.89",
"webpack-cli": "^5.1", "webpack-cli": "^5.1",
"webpack-notifier": "^1.15" "webpack-notifier": "^1.15"
}, },
"license": " AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"private": true, "private": true,
"scripts": { "scripts": {
"dev-server": "encore dev-server",
"dev": "encore dev", "dev": "encore dev",
"watch": "encore dev --watch", "watch": "encore dev --watch",
"build": "encore production --progress" "build": "encore production --progress"

View File

@ -29,7 +29,7 @@ class RefreshCommand extends Command
->setHelp('This command cleans the runs table'); ->setHelp('This command cleans the runs table');
} }
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output): int
{ {
$zip = $this->kernel->getCacheDir() . '/website.zip'; $zip = $this->kernel->getCacheDir() . '/website.zip';
$mddir = $this->kernel->getCacheDir() . '/pages'; $mddir = $this->kernel->getCacheDir() . '/pages';

View File

@ -80,6 +80,19 @@
"templates/base.html.twig" "templates/base.html.twig"
] ]
}, },
"symfony/web-profiler-bundle": {
"version": "7.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "6.1",
"ref": "e42b3f0177df239add25373083a564e5ead4e13a"
},
"files": [
"config/packages/web_profiler.yaml",
"config/routes/web_profiler.yaml"
]
},
"symfony/webpack-encore-bundle": { "symfony/webpack-encore-bundle": {
"version": "2.0", "version": "2.0",
"recipe": { "recipe": {