Skip to content

Commit cead16a

Browse files
committed
Merge 4.0
2 parents 034fcbc + 121a328 commit cead16a

File tree

6 files changed

+107
-6
lines changed

6 files changed

+107
-6
lines changed

.github/workflows/subtree.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
- v*
66
branches:
77
- main
8-
- 3.1
9-
- 3.2
8+
- '3.1'
9+
- '3.2'
10+
- '3.3'
11+
- '3.4'
12+
- '4.0'
1013

1114
env:
1215
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## v4.0.2
4+
5+
### Bug fixes
6+
7+
* [219199db3](https://github.com/api-platform/core/commit/219199db386cab05f1c1225b889c0a9609b36699) fix(symfony): missing alias to serializer context builder interface (#6643)
8+
* [5f943e3bb](https://github.com/api-platform/core/commit/5f943e3bb56934ba5d0b858f6b4c20a2985b6b6b) fix(graphql): wrong exception namespace (#6647)
9+
* [72a0b669a](https://github.com/api-platform/core/commit/72a0b669a426ca4bbbf14cf80a6ced683b947e8c) fix(serializer): remove serializer context builder interface
10+
* [88bd8c3e1](https://github.com/api-platform/core/commit/88bd8c3e151c843649bcac3feefc2cb956212410) fix(laravel): installation command, fix config overwrites (#6649)
11+
* [93314b08d](https://github.com/api-platform/core/commit/93314b08de1e6f0505af9e3a3ba3d9971f1ef09c) fix(serializer): allow state's SerializerFilterContextBuilderInterface (#6632)
12+
* [9a0afc917](https://github.com/api-platform/core/commit/9a0afc917a4bfa824ffbb640af9bb1114a5d31b4) fix(serializer): remove unnecessary dependency
13+
* [c47e2996e](https://github.com/api-platform/core/commit/c47e2996e51c587c998fde88903703bd6ac9a43c) fix: default format and standard_put values
14+
* [e327f5f69](https://github.com/api-platform/core/commit/e327f5f69c823c1ed674eefc0eb2551e30fb36bd) fix(symfony): namespace of path segment name generator services (#6642)
15+
16+
Notes:
17+
18+
`standard_put=true` is now the default, you can set it to `false` using `extra_properties.defaults`
19+
320
## v4.0.1
421

522
### Bug fixes
@@ -95,6 +112,16 @@
95112

96113
* [0d5f35683](https://github.com/api-platform/core/commit/0d5f356839eb6aa9f536044abe4affa736553e76) feat(laravel): laravel component (#5882)
97114

115+
## v3.4.1
116+
117+
### Bug fixes
118+
119+
* [219199db3](https://github.com/api-platform/core/commit/219199db386cab05f1c1225b889c0a9609b36699) fix(symfony): missing alias to serializer context builder interface (#6643)
120+
* [5f943e3bb](https://github.com/api-platform/core/commit/5f943e3bb56934ba5d0b858f6b4c20a2985b6b6b) fix(graphql): wrong exception namespace (#6647)
121+
* [93314b08d](https://github.com/api-platform/core/commit/93314b08de1e6f0505af9e3a3ba3d9971f1ef09c) fix(serializer): allow state's SerializerFilterContextBuilderInterface (#6632)
122+
* [9a0afc917](https://github.com/api-platform/core/commit/9a0afc917a4bfa824ffbb640af9bb1114a5d31b4) fix(serializer): remove unnecessary dependency
123+
* [e327f5f69](https://github.com/api-platform/core/commit/e327f5f69c823c1ed674eefc0eb2551e30fb36bd) fix(symfony): namespace of path segment name generator services (#6642)
124+
98125
## v3.4.0
99126

100127
### Deprecations:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Close Pull Request
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: superbrothers/close-pull-request@v3
12+
with:
13+
comment: "Thank you for your pull request. However, you have submitted this PR on a read-only sub split of `api-platform/core`. Please submit your PR on the https://github.com/api-platform/core repository.<br><br>Thanks!"

src/Laravel/ApiPlatformProvider.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,10 @@ function (Application $app) {
10551055
if ($this->app['config']->get('api-platform.graphql.enabled')) {
10561056
$this->registerGraphQl($this->app);
10571057
}
1058+
1059+
if ($this->app->runningInConsole()) {
1060+
$this->commands([Console\InstallCommand::class]);
1061+
}
10581062
}
10591063

10601064
private function registerGraphQl(Application $app): void
@@ -1210,11 +1214,11 @@ public function boot(ResourceNameCollectionFactoryInterface $resourceNameCollect
12101214
if ($this->app->runningInConsole()) {
12111215
$this->publishes([
12121216
__DIR__.'/config/api-platform.php' => $this->app->configPath('api-platform.php'),
1213-
], 'laravel-assets');
1217+
], 'api-platform-config');
12141218

12151219
$this->publishes([
12161220
__DIR__.'/public' => $this->app->publicPath('vendor/api-platform'),
1217-
], 'laravel-assets');
1221+
], ['api-platform-assets', 'public']);
12181222
}
12191223

12201224
$this->loadViewsFrom(__DIR__.'/resources/views', 'api-platform');
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the API Platform project.
5+
*
6+
* (c) Kévin Dunglas <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace ApiPlatform\Laravel\Console;
15+
16+
use Illuminate\Console\Command;
17+
use Symfony\Component\Console\Attribute\AsCommand;
18+
19+
#[AsCommand(name: 'api-platform:install')]
20+
class InstallCommand extends Command
21+
{
22+
/**
23+
* @var string
24+
*/
25+
protected $signature = 'api-platform:install';
26+
27+
/**
28+
* @var string
29+
*/
30+
protected $description = 'Install all of the API Platform resources';
31+
32+
/**
33+
* Execute the console command.
34+
*/
35+
public function handle(): void
36+
{
37+
$this->comment('Publishing API Platform Assets...');
38+
$this->callSilent('vendor:publish', ['--tag' => 'api-platform-assets']);
39+
40+
$this->comment('Publishing API Platform Configuration...');
41+
$this->callSilent('vendor:publish', ['--tag' => 'api-platform-config']);
42+
43+
$this->info('API Platform installed successfully.');
44+
}
45+
}

src/Laravel/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
# Laravel Integration of API Platform
1+
# API Platform for Laravel
22

3-
Integrates [API Platform](https://api-platform.com) into the [Laravel](https://laravel.com) framework and the Illuminate components.
3+
Integration of [Laravel](https://laravel.com) and the Illuminate components with the [API Platform](https://api-platform.com) framework.
4+
5+
[Documentation](https://api-platform.com/docs/laravel/)
6+
7+
> [!CAUTION]
8+
>
9+
> This is a read-only sub split of `api-platform/core`, please
10+
> [report issues](https://github.com/api-platform/core/issues) and
11+
> [send Pull Requests](https://github.com/api-platform/core/pulls)
12+
> in the [core API Platform repository](https://github.com/api-platform/core).

0 commit comments

Comments
 (0)