Skip to content

Commit

Permalink
Update Configuration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mercuryseries authored May 30, 2023
1 parent 0719da8 commit 755a295
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public function getConfigTreeBuilder(): TreeBuilder
$rootNode
->children()
->booleanNode('enable')->defaultTrue()->end()
->scalarNode('id')->defaultValue('csrf')->end()
->scalarNode('name')->defaultValue('XSRF-TOKEN')->end()
->scalarNode('id')->cannotBeEmpty()->defaultValue('csrf')->end()
->scalarNode('name')->cannotBeEmpty()->defaultValue('XSRF-TOKEN')->end()
->integerNode('expire')->defaultValue(0)->end()
->scalarNode('path')->defaultValue('/')->end()
->scalarNode('path')->cannotBeEmpty()->defaultValue('/')->end()
->scalarNode('domain')->defaultNull()->end()
->booleanNode('secure')->defaultFalse()->end()
->scalarNode('header')->defaultValue('X-XSRF-TOKEN')->end()
->scalarNode('sameSite')->defaultValue(Cookie::SAMESITE_LAX)->end()
->scalarNode('header')->cannotBeEmpty()->defaultValue('X-XSRF-TOKEN')->end()
->scalarNode('sameSite')->cannotBeEmpty()->defaultValue(Cookie::SAMESITE_LAX)->end()
->end();

return $treeBuilder;
Expand Down

0 comments on commit 755a295

Please sign in to comment.