Skip to content

Commit 55733c2

Browse files
committed
Use Symfony5 class names in connectors
#5532
1 parent b301b1c commit 55733c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Codeception/Lib/Connector/Laravel5.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
use Illuminate\Http\UploadedFile;
1111
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
1212
use Symfony\Component\HttpFoundation\Response;
13-
use Symfony\Component\HttpKernel\Client;
13+
use Symfony\Component\HttpKernel\HttpKernelBrowser as Client;
14+
15+
//Alias for Symfony < 4.3
16+
if (!class_exists('Symfony\Component\HttpKernel\HttpKernelBrowser') && class_exists('Symfony\Component\HttpKernel\Client')) {
17+
class_alias('Symfony\Component\HttpKernel\Client', 'Symfony\Component\HttpKernel\HttpKernelBrowser');
18+
}
1419

1520
class Laravel5 extends Client
1621
{

0 commit comments

Comments
 (0)