Skip to content

Commit

Permalink
chore: remove deprecations
Browse files Browse the repository at this point in the history
Remove support of API Platform 3.x
Replace api-platform/core dependency by api-platform/openapi
Remove support of Symfony 5.x
Remove support of PHP < 8.3
  • Loading branch information
vincentchalamon committed Jan 14, 2025
1 parent 240b39c commit 9ec7a89
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 372 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,20 @@ jobs:
matrix:
php:
# Only PHP supported versions: https://www.php.net/supported-versions.php
- '8.1'
- '8.2'
- '8.3'
- '8.4'
symfony:
# Only Symfony supported versions: https://symfony.com/releases
- '6.4.*'
- '7.1.*'
api-platform:
- '^3.4'
- '^4.0'
include:
- phpunit: 'phpunit.xml.dist'
- php: '8.1'
phpunit: 'phpunit-legacy.xml.dist'
- php: '8.4'
symfony: '7.1.*'
api-platform: '^4.0'
bootable: true
quality: true
exclude:
# Symfony 7 requires PHP 8.2
- php: '8.1'
symfony: '7.1.*'
- php: '8.2'
symfony: '7.1.*'
# API Platform 4 requires PHP 8.2
- php: '8.1'
api-platform: '^4.0'
fail-fast: false
steps:
- name: Checkout
Expand All @@ -79,7 +64,7 @@ jobs:
- name: Update project dependencies
run: composer update --no-progress --ansi --prefer-stable --prefer-dist --no-scripts
- name: Run PHPUnit tests
run: vendor/bin/phpunit --colors=always --testdox -c ${{ matrix.phpunit }}
run: vendor/bin/phpunit --colors=always --testdox
- name: Run Behat tests
run: |
mkdir -p features/app/cache/test/doctrine/orm/Proxies features/app/logs
Expand Down
40 changes: 20 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
}
],
"require": {
"php": ">=8.1",
"symfony/config": "^5.1 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.1 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.1 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.1 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.1.5 || ^6.0 || ^7.0",
"symfony/serializer": "^5.1 || ^6.0 || ^7.0"
"php": ">=8.3",
"symfony/config": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/event-dispatcher": "^6.4 || ^7.0",
"symfony/http-foundation": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
"symfony/serializer": "^6.4 || ^7.0"
},
"require-dev": {
"ext-json": "*",
"api-platform/core": "^3.0 || ^4.0",
"api-platform/openapi": "^4.0",
"behat/behat": "^3.1",
"dg/bypass-finals": "^1.1",
"doctrine/data-fixtures": "^1.2",
Expand All @@ -36,22 +36,22 @@
"jms/serializer-bundle": "^1.4 || ^2.3 || ^3.0 || ^4.0 || ^5.0",
"laminas/laminas-code": "^3.4 || ^4.0",
"ocramius/proxy-manager": "^2.0.4",
"phpunit/phpunit": "^10.0 || ^11.0",
"symfony/asset": "^5.1 || ^6.0 || ^7.0",
"symfony/browser-kit": "^5.1 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^5.1 || ^6.0 || ^7.0",
"symfony/mailer": "^5.1 || ^6.0 || ^7.0",
"symfony/property-access": "^5.1 || ^6.0 || ^7.0",
"symfony/security-bundle": "^5.1 || ^6.0 || ^7.0",
"symfony/stopwatch": "^5.1 || ^6.0 || ^7.0",
"symfony/templating": "^5.1 || ^6.0 || ^7.0",
"symfony/twig-bundle": "^5.1 || ^6.0 || ^7.0",
"symfony/var-dumper": "^5.1 || ^6.0 || ^7.0"
"phpunit/phpunit": "^11.0",
"symfony/asset": "^6.4 || ^7.0",
"symfony/browser-kit": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/mailer": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/security-bundle": "^6.4 || ^7.0",
"symfony/stopwatch": "^6.4 || ^7.0",
"symfony/templating": "^6.4 || ^7.0",
"symfony/twig-bundle": "^6.4 || ^7.0",
"symfony/var-dumper": "^6.4 || ^7.0"
},
"suggest": {
"doctrine/doctrine-bundle": "To connect with Doctrine in Symfony project",
"doctrine/orm": "To connect with Doctrine",
"api-platform/core": "To connect with API Platform"
"api-platform/openapi": "To connect with API Platform"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 0 additions & 2 deletions config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
<service id="coop_tilleuls_forgot_password.manager.forgot_password" class="CoopTilleuls\ForgotPasswordBundle\Manager\ForgotPasswordManager" public="true">
<argument type="service" id="coop_tilleuls_forgot_password.manager.password_token" />
<argument type="service" id="event_dispatcher" />
<argument type="service" id="coop_tilleuls_forgot_password.provider_chain"/>
</service>

<service id="coop_tilleuls_forgot_password.manager.password_token" class="CoopTilleuls\ForgotPasswordBundle\Manager\PasswordTokenManager" public="true">
<argument type="service" id="coop_tilleuls_forgot_password.provider_chain"/>
<argument/> <!-- token_generator -->
</service>

Expand Down
31 changes: 0 additions & 31 deletions phpunit-legacy.xml.dist

This file was deleted.

220 changes: 0 additions & 220 deletions src/Bridge/ApiPlatform/OpenApi/AbstractOpenApiFactory.php

This file was deleted.

Loading

0 comments on commit 9ec7a89

Please sign in to comment.