Skip to content

Commit

Permalink
[SecurityBundle] minor simplification in main configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Nov 24, 2013
1 parent 43becff commit 0d8c34b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
->ifTrue(function($v) { return isset($v['csrf_provider']); })
->then(function($v) {
$v['csrf_token_generator'] = $v['csrf_provider'];
unset($v['csrf_provider']);

return $v;
})
Expand All @@ -232,14 +233,6 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
->ifTrue(function($v) { return isset($v['intention']); })
->then(function($v) {
$v['csrf_token_id'] = $v['intention'];

return $v;
})
->end()
->beforeNormalization()
->always()
->then(function ($v) {
unset($v['csrf_provider']);
unset($v['intention']);

return $v;
Expand Down

0 comments on commit 0d8c34b

Please sign in to comment.