Skip to content

Commit 2cd2323

Browse files
authored
Merge branch 'api-platform:main' into toitzi/relationships
2 parents 22abe41 + 8a4218b commit 2cd2323

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/api_platform.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
name: CI
1+
name: Distribution update
22

33
on:
44
push:
55
tags:
66
- v*
77

8+
env:
9+
GH_TOKEN: ${{ github.token }}
10+
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1013
cancel-in-progress: true

docs/adr/0005-refactor-state-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For API Platform 3, we refactored the whole metadata susbsytem to be more flexib
3030
This led to the refactoring of the two main interfaces allowing to plug a data source in API Platform: the state provider and the state processor interfaces.
3131

3232
Leveraging these new interfaces, it should be possible to simplify the code base and to remove most code duplication by transforming most of the code currently
33-
stored in the kernel event listeners and in the GraphQL resolvers in dedicated state processors and state providers.
33+
stored in the kernel event listeners and in the GraphQL resolvers in dedicated state processors and state providers. This is quite close to what @alanpoulain proposed in 2019 at https://github.com/api-platform/core/pull/2978 although at that time we needed to refactor the subresource system before tackling this issue.
3434

3535
## Decision Outcome
3636

src/Laravel/config/api-platform.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'title' => 'API Platform',
99
'description' => 'My awesome API',
1010
'version' => '1.0.0',
11+
'show_webby' => true,
1112

1213
'routes' => [
1314
// Global middleware applied to every API Platform routes

src/Laravel/resources/views/swagger-ui.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<header>
1515
<a id="logo" href="https://api-platform.com/"><img src="/vendor/api-platform/logo-header.svg" alt="API Platform"></a>
1616
</header>
17+
@if (config('api-platform.show_webby', true))
1718
<div class="web calm"><img src="/vendor/api-platform/web.png"></div>
1819
<svg class="webby_car" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1889.21 582.3">
1920
<g id="Calque_1">
@@ -209,6 +210,7 @@
209210
</g>
210211
</g>
211212
</svg>
213+
@endif
212214

213215
<div id="swagger-ui" class="api-platform"></div>
214216
<script src="/vendor/api-platform/swagger-ui/swagger-ui-bundle.js"></script>

0 commit comments

Comments
 (0)