Skip to content

Commit 391a16b

Browse files
committed
Use Symfony5 class names in connectors
#5532
1 parent 984f72f commit 391a16b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Codeception/Lib/Connector/Symfony.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<?php
22
namespace Codeception\Lib\Connector;
33

4-
class Symfony extends \Symfony\Component\HttpKernel\Client
4+
use Symfony\Component\HttpKernel\HttpKernelBrowser;
5+
6+
//Alias for Symfony < 4.3
7+
if (!class_exists('Symfony\Component\HttpKernel\HttpKernelBrowser') && class_exists('Symfony\Component\HttpKernel\Client')) {
8+
class_alias('Symfony\Component\HttpKernel\Client', 'Symfony\Component\HttpKernel\HttpKernelBrowser');
9+
}
10+
11+
class Symfony extends HttpKernelBrowser
512
{
613
/**
714
* @var boolean

0 commit comments

Comments
 (0)