Skip to content

Commit a551e90

Browse files
committed
Merge branch 'hotfix/1.8.9'
2 parents d69f69c + 36ffd06 commit a551e90

10 files changed

Lines changed: 605 additions & 539 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.8.9] - 2025-07-01
11+
12+
- Update to Symfony 7.3, update composer dependencies
13+
- Fix dependency injection for ExportCrudControllerTrait
14+
- Split config in dev/prod for secrets to only use vault in production
15+
1016
## [1.8.8] - 2025-05-12
1117

1218
- Show server actions inline

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"extra": {
100100
"symfony": {
101101
"allow-contrib": false,
102-
"require": "7.2.*"
102+
"require": "7.3.*"
103103
}
104104
},
105105
"scripts": {

composer.lock

Lines changed: 569 additions & 521 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/itkdev_openid_connect.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,19 @@ itkdev_openid_connect:
1313
azure_az:
1414
options:
1515
metadata_url: '%env(string:AZURE_AZ_OIDC_METADATA_URL)%'
16-
client_id: '%env(vault:AZURE_AZ_OIDC_CLIENT_ID)%'
17-
client_secret: '%env(vault:AZURE_AZ_OIDC_CLIENT_SECRET)%'
16+
client_id: '%env(AZURE_AZ_OIDC_CLIENT_ID)%'
17+
client_secret: '%env(AZURE_AZ_OIDC_CLIENT_SECRET)%'
1818
# Specify redirect URI
1919
redirect_uri: '%env(string:AZURE_AZ_OIDC_REDIRECT_URI)%'
2020
allow_http: '%env(bool:AZURE_AZ_OIDC_ALLOW_HTTP)%'
2121
# Optional: Specify leeway (seconds) to account for clock skew between provider and hosting
2222
# Defaults to 10
2323
leeway: '%env(int:AZURE_AZ_OIDC_LEEWAY)%'
24+
25+
when@prod:
26+
itkdev_openid_connect:
27+
openid_providers:
28+
azure_az:
29+
options:
30+
client_id: '%env(vault:AZURE_AZ_OIDC_CLIENT_ID)%'
31+
client_secret: '%env(vault:AZURE_AZ_OIDC_CLIENT_SECRET)%'

public/api-spec-v1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,18 @@
209209
"deprecated": false,
210210
"properties": {
211211
"type": {
212+
"default": "",
213+
"example": "",
212214
"type": "string"
213215
},
214216
"rootDir": {
217+
"default": "",
218+
"example": "",
215219
"type": "string"
216220
},
217221
"data": {
222+
"default": "",
223+
"example": "",
218224
"type": "string"
219225
}
220226
}

public/api-spec-v1.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,16 @@ components:
145145
deprecated: false
146146
properties:
147147
type:
148+
default: ''
149+
example: ''
148150
type: string
149151
rootDir:
152+
default: ''
153+
example: ''
150154
type: string
151155
data:
156+
default: ''
157+
example: ''
152158
type: string
153159
Error:
154160
type: object

src/Controller/Admin/OIDCCrudController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use App\Entity\OIDC;
88
use App\Repository\SiteRepository;
9-
use App\Service\Exporter;
109
use App\Trait\ExportCrudControllerTrait;
1110
use EasyCorp\Bundle\EasyAdminBundle\Config\Action;
1211
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
@@ -24,10 +23,8 @@ class OIDCCrudController extends AbstractCrudController
2423
use ExportCrudControllerTrait;
2524

2625
public function __construct(
27-
Exporter $exporter,
2826
private readonly SiteRepository $siteRepository)
2927
{
30-
$this->setExporter($exporter);
3128
}
3229

3330
public static function getEntityFqcn(): string

src/Controller/Admin/ServerCrudController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use App\Form\Type\Admin\MariaDbVersionFilter;
1010
use App\Form\Type\Admin\ServerTypeFilter;
1111
use App\Form\Type\Admin\SystemFilter;
12-
use App\Service\Exporter;
1312
use App\Trait\ExportCrudControllerTrait;
1413
use App\Types\DatabaseVersionType;
1514
use App\Types\HostingProviderType;
@@ -34,10 +33,8 @@ class ServerCrudController extends AbstractCrudController
3433
use ExportCrudControllerTrait;
3534

3635
public function __construct(
37-
Exporter $exporter,
3836
private readonly RequestStack $requestStack,
3937
) {
40-
$this->setExporter($exporter);
4138
}
4239

4340
public static function getEntityFqcn(): string

src/Controller/Admin/SiteCrudController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use App\Admin\Field\SiteTypeField;
1313
use App\Admin\Field\VersionField;
1414
use App\Entity\Site;
15-
use App\Service\Exporter;
1615
use App\Trait\ExportCrudControllerTrait;
1716
use EasyCorp\Bundle\EasyAdminBundle\Config\Action;
1817
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
@@ -26,9 +25,8 @@ class SiteCrudController extends AbstractCrudController
2625
{
2726
use ExportCrudControllerTrait;
2827

29-
public function __construct(Exporter $exporter)
28+
public function __construct()
3029
{
31-
$this->setExporter($exporter);
3230
}
3331

3432
public static function getEntityFqcn(): string

src/Trait/ExportCrudControllerTrait.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
use EasyCorp\Bundle\EasyAdminBundle\Factory\FilterFactory;
1414
use Symfony\Component\HttpFoundation\Response;
1515
use Symfony\Component\Translation\TranslatableMessage;
16+
use Symfony\Contracts\Service\Attribute\Required;
1617

1718
trait ExportCrudControllerTrait
1819
{
1920
private FilterFactory $filterFactory;
21+
private Exporter $exporter;
2022

21-
/**
22-
* @required
23-
*/
24-
public function autowireExportCrudControllerTrait(FilterFactory $filterFactory): void
23+
#[Required]
24+
public function setFilterFactory(FilterFactory $filterFactory): void
2525
{
2626
$this->filterFactory = $filterFactory;
2727
}
28-
private Exporter $exporter;
2928

30-
protected function setExporter(Exporter $exporter): void
29+
#[Required]
30+
public function setExporter(Exporter $exporter): void
3131
{
3232
$this->exporter = $exporter;
3333
}

0 commit comments

Comments
 (0)