Skip to content

Commit 13964e4

Browse files
Update recipes 2025-07-27 (#148)
1 parent 2d2be23 commit 13964e4

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return static function (ContainerConfigurator $containerConfigurator): void {
8+
$containerConfigurator->extension('framework', [
9+
'csrf_protection' => [
10+
'check_header' => true,
11+
],
12+
]);
13+
};

symfony/ux-turbo/2.20/manifest.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
"bundles": {
33
"Symfony\\UX\\Turbo\\TurboBundle": ["all"]
44
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
58
"aliases": ["turbo"],
69
"conflict": {
710
"symfony/framework-bundle": "<7.2",
811
"symfony/security-csrf": "<7.2"
9-
},
10-
"add-lines": [
11-
{
12-
"file": "config/packages/csrf.yaml",
13-
"position": "after_target",
14-
"target": " csrf_protection:",
15-
"content": " check_header: true"
16-
}
17-
]
12+
}
1813
}

0 commit comments

Comments
 (0)