Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 9d7db69

Browse files
committed
Removed deprecated whitelist config
1 parent 5bac17c commit 9d7db69

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ private function addBlockCookiesSection(ArrayNodeDefinition $node): void
3838
->children()
3939
->arrayNode('block_cookies')
4040
->children()
41-
->arrayNode('whitelist')
42-
->setDeprecated('Use keep node instead')
43-
->prototype('scalar')->end()
44-
->end()
4541
->arrayNode('keep')
4642
->defaultValue(['PHPSESSID'])
4743
->prototype('scalar')->end()

src/DependencyInjection/NucleosGDPRExtension.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ public function load(array $configs, ContainerBuilder $container): void
3535
if (isset($config['block_cookies'])) {
3636
$loader->load('listener.xml');
3737

38-
if ([] !== $config['block_cookies']['whitelist']) {
39-
$config['block_cookies']['keep'] = $config['block_cookies']['whitelist'];
40-
unset($config['block_cookies']['whitelist']);
41-
}
42-
4338
$container->getDefinition(KernelEventSubscriber::class)
4439
->replaceArgument(0, $config['block_cookies']['keep'])
4540
;

tests/DependencyInjection/ConfigurationTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function testBlockedCookieEnabled(): void
3939

4040
$expected = [
4141
'block_cookies' => [
42-
'whitelist' => [],
4342
'keep' => ['PHPSESSID'],
4443
],
4544
];
@@ -60,7 +59,6 @@ public function testBlockedCookieOptions(): void
6059
$expected = [
6160
'block_cookies' => [
6261
'keep' => ['SOMEKEY', 'OTHERKEY'],
63-
'whitelist' => [],
6462
],
6563
];
6664

0 commit comments

Comments
 (0)