Skip to content

Commit 23f91da

Browse files
committed
Allow packages from "symfony/*" ^7
1 parent aa7c160 commit 23f91da

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
strategy:
99
matrix:
1010
php:
11-
- 8.0
11+
- 8.2
1212

1313
name: Test ${{ matrix.php }}
1414
runs-on: ubuntu-latest
1515

1616
steps:
1717
- uses: actions/checkout@v2
1818

19-
- uses: shivammathur/setup-php@v1
19+
- uses: shivammathur/setup-php@v2
2020
with:
2121
php-version: ${{ matrix.php }}
2222
extensions: pdo_sqlite, pdo_mysql, pdo_pgsql

composer.json

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
{ "name": "Knplabs", "homepage": "http://knplabs.com" }
1212
],
1313
"require": {
14-
"php": ">=8.0",
15-
"doctrine/common": "^3.3",
14+
"php": ">=8.2",
15+
"doctrine/collections": "^1.6.8",
1616
"doctrine/persistence": "^2.5|^3.0",
1717
"doctrine/dbal": "^3.3",
1818
"doctrine/orm": "^2.12",
1919
"doctrine/doctrine-bundle": "^2.6",
20-
"symfony/cache": "^5.4|^6.0",
21-
"symfony/dependency-injection": "^5.4|^6.0",
22-
"symfony/http-kernel": "^5.4|^6.0",
23-
"symfony/security-core": "^5.4|^6.0",
24-
"symfony/framework-bundle": "^5.4|^6.0",
25-
"symfony/string": "^5.4|^6.0",
20+
"symfony/cache": "^6.2|^7.0",
21+
"symfony/dependency-injection": "^6.2|^7.0",
22+
"symfony/http-kernel": "^6.2|^7.0",
23+
"symfony/framework-bundle": "^5.4|^6.2|^7.0",
24+
"symfony/security-bundle": "^6.2|^7.0",
25+
"symfony/string": "^5.4|^6.2|^7.0",
2626
"symfony/translation-contracts": "^2.4|^3.0",
2727
"nette/utils": "^3.2",
2828
"ramsey/uuid": "^4.2"
@@ -37,14 +37,9 @@
3737
"phpstan/phpstan": "^1.7.10",
3838
"phpunit/phpunit": "^9.5",
3939
"rector/rector": "^0.13.4",
40-
"symplify/easy-coding-standard": "^10.2.9",
41-
"symplify/phpstan-extensions": "^10.2.9",
4240
"phpstan/phpstan-doctrine": "^1.3",
4341
"phpstan/phpstan-phpunit": "^1.1",
44-
"symplify/package-builder": "^10.2.9",
45-
"symplify/phpstan-rules": "^10.2.9",
46-
"phpstan/extension-installer": "^1.1",
47-
"symplify/easy-ci": "^10.2.9"
42+
"phpstan/extension-installer": "^1.1"
4843
},
4944
"autoload": {
5045
"psr-4": {

src/Provider/UserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Knp\DoctrineBehaviors\Provider;
66

77
use Knp\DoctrineBehaviors\Contract\Provider\UserProviderInterface;
8-
use Symfony\Component\Security\Core\Security;
8+
use Symfony\Bundle\SecurityBundle\Security;
99

1010
final class UserProvider implements UserProviderInterface
1111
{

tests/config/config_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use Knp\DoctrineBehaviors\Tests\Provider\TestLocaleProvider;
1010
use Knp\DoctrineBehaviors\Tests\Provider\TestUserProvider;
1111
use Psr\Log\Test\TestLogger;
12+
use Symfony\Bundle\SecurityBundle\Security;
1213
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
13-
use Symfony\Component\Security\Core\Security;
1414
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
1515

1616
return static function (ContainerConfigurator $containerConfigurator): void {

0 commit comments

Comments
 (0)