Skip to content

Commit f20504b

Browse files
committed
Fixing deprecations
1 parent 99ae5cc commit f20504b

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

src/LiveComponent/tests/Fixtures/Kernel.php

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,42 @@ public function process(ContainerBuilder $container): void
8383

8484
protected function configureContainer(ContainerConfigurator $c): void
8585
{
86-
$c->extension('framework', [
86+
$frameworkConfig = [
8787
'secret' => 'S3CRET',
8888
'test' => true,
8989
'router' => ['utf8' => true],
9090
'secrets' => false,
91-
'session' => ['storage_factory_id' => 'session.storage.factory.mock_file'],
91+
'session' => [
92+
'storage_factory_id' => 'session.storage.factory.mock_file',
93+
'handler_id' => null,
94+
'cookie_secure' => 'auto',
95+
'cookie_samesite' => 'lax',
96+
],
97+
'validation' => [
98+
'email_validation_mode' => 'html5',
99+
],
100+
'php_errors' => [
101+
'log' => false,
102+
],
92103
'http_method_override' => false,
93104
'property_info' => ['enabled' => true],
94-
]);
105+
];
106+
if (self::VERSION_ID >= 60200) {
107+
$frameworkConfig['handle_all_throwables'] = true;
108+
}
109+
110+
$c->extension('framework', $frameworkConfig);
95111

96112
$c->extension('twig', [
97113
'default_path' => '%kernel.project_dir%/tests/Fixtures/templates',
98114
]);
99115

116+
$c->extension('twig_component', [
117+
'defaults' => [
118+
'Symfony\UX\LiveComponent\Tests\Fixtures\Component\\' => 'components/',
119+
],
120+
]);
121+
100122
$c->extension('zenstruck_foundry', [
101123
'auto_refresh_proxies' => false,
102124
]);

0 commit comments

Comments
 (0)