Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e609da

Browse files
Fix KernelBrowser
1 parent b004f3b commit 5e609da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function loginUser($user, string $firewallContext = 'main'): self
123123
$token = new TestBrowserToken($user->getRoles(), $user, $firewallContext);
124124
$token->setAuthenticated(true);
125125

126-
$container = $this->getContainer();
126+
$container = $this->kernel->getContainer()->get('test.service_container');
127127
$container->get('security.untracked_token_storage')->setToken($token);
128128

129129
if (!$container->has('session')) {

0 commit comments

Comments
 (0)