Skip to content

Commit 887d707

Browse files
authored
feat: CookieJar on Client (#3418)
* feat: CookieJar on Client * typo: phpdoc @return for cookieJar
1 parent a880d96 commit 887d707

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Bridge/Symfony/Bundle/Test/Client.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace ApiPlatform\Core\Bridge\Symfony\Bundle\Test;
1515

1616
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
17+
use Symfony\Component\BrowserKit\CookieJar;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819
use Symfony\Component\HttpClient\HttpClientTrait;
1920
use Symfony\Component\HttpKernel\KernelInterface;
@@ -167,6 +168,14 @@ public function getContainer(): ?ContainerInterface
167168
return $this->kernelBrowser->getContainer();
168169
}
169170

171+
/**
172+
* Returns the CookieJar instance.
173+
*/
174+
public function getCookieJar(): CookieJar
175+
{
176+
return $this->kernelBrowser->getCookieJar();
177+
}
178+
170179
/**
171180
* Returns the kernel.
172181
*/

0 commit comments

Comments
 (0)