Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,29 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
name: PHP ${{ matrix.php-versions }} ${{ matrix.dependencies }}
name: PHP ${{ matrix.php-versions }} ${{ matrix.dependencies }}${{ matrix.api-platform && format(' (API Platform {0})', matrix.api-platform) || '' }}
strategy:
fail-fast: false
matrix:
php-versions: ['8.2', '8.3', '8.4', '8.5']
dependencies: ['highest']
# Listed here so the pinned include below becomes its own job instead
# of being merged into the existing PHP 8.5 highest job.
api-platform: ['']
include:
- php-versions: '8.2'
dependencies: 'lowest'
- php-versions: '8.5'
dependencies: 'highest'
api-platform: '^4.4'
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Pin API Platform ${{ matrix.api-platform }}
if: matrix.api-platform
run: composer require --dev --no-update --no-interaction "api-platform/core:${{ matrix.api-platform }}"
- name: Install dependencies (highest)
if: matrix.dependencies == 'highest'
run: composer update --no-interaction --prefer-dist
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
`TranslationsEagerLoadingExtension`), so listing N resources issues one query
instead of one translation query per entity per locale; disable with the
`eager_load_translations` option (#10)
- Support for API Platform 5: `api-platform/symfony` now also allows `^5.0`

### Changed
- Modern bundle layout: the bundle class extends `AbstractBundle` and services
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Translation bundle for [API Platform](https://api-platform.com/) based on [Syliu
Supported versions:
-------------------

| Version | PHP | API Platform | Doctrine ORM |
|----------------------|--------|------------------|--------------|
| 2.x (`master`) | `^8.2` | `^3.4 \|\| ^4.0` | `^3.0` |
| 1.4 | `^8.1` | `^2.1 \|\| ^3.0` | `^3.0` |
| Version | PHP | API Platform | Doctrine ORM |
|----------------------|--------|----------------------------|--------------|
| 2.x (`master`) | `^8.2` | `^3.4 \|\| ^4.0 \|\| ^5.0` | `^3.0` |
| 1.4 | `^8.1` | `^2.1 \|\| ^3.0` | `^3.0` |

Installation:
-------------
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": "^8.2",
"api-platform/symfony": "^3.4 || ^4.0",
"api-platform/symfony": "^3.4 || ^4.0 || ^5.0",
"doctrine/orm": "^3.0",
"doctrine/doctrine-bundle": "^2.13 || ^3.0",
"symfony/config": "^6.4 || ^7.0 || ^8.0",
Expand All @@ -29,7 +29,8 @@
"friendsofphp/php-cs-fixer": "^3.95",
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0",
"symfony/validator": "^6.4 || ^7.0 || ^8.0",
"api-platform/core": "^3.4 || ^4.0"
"api-platform/core": "^3.4 || ^4.0 || ^5.0",
"symfony/http-client": "^6.4 || ^7.0 || ^8.0"
},
"prefer-stable": true,
"autoload": {
Expand Down
Loading