Skip to content

Commit 5506cc8

Browse files
Merge pull request #83 from smartbooster/allow_doctrine_orm_v3
Allow doctrine orm v3
2 parents 0c7bcd5 + c137ba8 commit 5506cc8

5 files changed

Lines changed: 28 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
'8.3',
1818
'8.4'
1919
]
20+
orm: ['2.19.*', '^3.0'] # must be working on both
2021
container:
2122
image: ghcr.io/${{ github.repository_owner }}/symfony-docker:php${{ matrix.php }}
2223
credentials:
@@ -34,6 +35,10 @@ jobs:
3435
- name: Validate composer.json and composer.lock
3536
run: composer validate
3637

38+
# Dynamically update composer.json dependencies before running make install
39+
- name: "Restrict Doctrine ORM version"
40+
run: composer require "doctrine/orm:${{ matrix.orm }}" --no-update --no-interaction
41+
3742
- name: Install
3843
run: make install
3944

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
CHANGELOG
22
===================
3+
## v2.12.0 - (2026-04-15)
4+
### Added
5+
- Allow orm v3
6+
- Add composer require dev `symfony/var-exporter` to fix orm v3 qualimetry
7+
- Add orm v2.19 like new `smartbooster/core-bundle` minimum orm version and v3 matrix to github actions
8+
9+
### Changed
10+
- `HealthCheckController` Use `MYSQL_VERSION` or `MYSQL_ADDON_VERSION` env variable for mysql version
11+
12+
### Fixed
13+
- `SecuritySubscriber` Use `$event->getRequest()->query->get()` instead of `$event->getRequest()->get(` to remove deprecated method
14+
315
## v2.11.0 - (2026-02-25)
416
### Added
517
- Allow Symfony 7.4

‎composer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"symfony/phpunit-bridge": "^5.4|^6.2|^7.0",
3939
"symfony/runtime": "^5.4|^6.22|^7.4",
4040
"symfony/twig-bundle": "^5.4|^6.22|^7.4",
41-
"symfony/browser-kit": "^5.4|^6.2|^7.4"
41+
"symfony/browser-kit": "^5.4|^6.2|^7.4",
42+
"symfony/var-exporter": "^5.4|^6.2|^7.4"
4243
},
4344
"autoload": {
4445
"psr-4": {

‎config/services.yaml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
parameters:
2+
mysql_addon_version: '%env(MYSQL_ADDON_VERSION)%'
3+
14
services:
25
# Admin
36
admin.batch_log:
@@ -96,7 +99,11 @@ services:
9699
Smart\SonataBundle\Controller\Admin\Monitoring\HealthCheckController:
97100
calls:
98101
- setContainer: [ '@service_container' ]
99-
- setCurrentVersions: [ {php: '%env(PHP_VERSION)%', node: '%env(NODE_VERSION)%', mysql: '%env(MYSQL_ADDON_VERSION)%'} ]
102+
- setCurrentVersions:
103+
- php: '%env(PHP_VERSION)%'
104+
node: '%env(NODE_VERSION)%'
105+
# fallback to MYSQL_ADDON_VERSION if MYSQL_VERSION is not set, for backward compatibility
106+
mysql: '%env(default:mysql_addon_version:MYSQL_VERSION)%'
100107
- setProjectDir: [ '%kernel.project_dir%' ]
101108
- setSecurity: [ '@Symfony\Bundle\SecurityBundle\Security' ]
102109
- setTranslator: [ '@translator' ]

‎src/Security/EventSubscriber/SecuritySubscriber.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function onInteractiveLogin(InteractiveLoginEvent $event)
6666
}
6767

6868
// Impersonnate user must not update last_login date
69-
if ($event->getRequest()->get('switch_user') !== null) {
69+
if ($event->getRequest()->query->get('switch_user') !== null) {
7070
return;
7171
}
7272

0 commit comments

Comments
 (0)