Skip to content

Commit

Permalink
Support Symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroeny committed Nov 1, 2023
1 parent c25f3f3 commit c9dfea6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"require": {
"php": "^7.4 || ^8.0",
"behat/behat": "^3.6.1",
"symfony/dependency-injection": "^4.4 || ^5.3 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.3 || ^6.0",
"symfony/proxy-manager-bridge": "^4.4 || ^5.3 || ^6.0"
"symfony/dependency-injection": "^5.3 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.3 || ^6.0 || ^7.0",
"symfony/proxy-manager-bridge": "^5.3 || ^6.0 || ^7.0"
},
"require-dev": {
"behat/mink-selenium2-driver": "^1.3",
Expand All @@ -25,10 +25,10 @@
"friends-of-behat/page-object-extension": "^0.3.2",
"friends-of-behat/service-container-extension": "^1.1",
"sylius-labs/coding-standard": ">=4.1.1, <=4.2.1",
"symfony/browser-kit": "^4.4 || ^5.3 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.3 || ^6.0",
"symfony/process": "^4.4 || ^5.3 || ^6.0",
"symfony/yaml": "^4.4 || ^5.3 || ^6.0",
"symfony/browser-kit": "^5.3 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^5.3 || ^6.0 || ^7.0",
"symfony/process": "^5.3 || ^6.0 || ^7.0",
"symfony/yaml": "^5.3 || ^6.0 || ^7.0",
"vimeo/psalm": "4.30.0"
},
"suggest": {
Expand All @@ -37,7 +37,10 @@
"friends-of-behat/mink-extension": "^2.5"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"branch-alias": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use FriendsOfBehat\SymfonyExtension\Mink\MinkParameters;
use FriendsOfBehat\SymfonyExtension\ServiceContainer\SymfonyExtension;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Component\BrowserKit\Client;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand Down Expand Up @@ -79,10 +78,6 @@ private function provideBrowserKitIntegration(ContainerBuilder $container): void
return;
}

if (class_exists(Client::class)) {
$container->setAlias(Client::class, 'test.client');
}

$container->setAlias(KernelBrowser::class, 'test.client');
$container->setAlias(HttpKernelBrowser::class, 'test.client');
}
Expand Down

0 comments on commit c9dfea6

Please sign in to comment.