We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd44e8f commit c7fabb1Copy full SHA for c7fabb1
core/openapi.md
@@ -77,22 +77,16 @@ need to decorate `api_platform.openapi.factory`.
77
In the following example, we will see how to override the title and the base path URL of the Swagger documentation and add a custom filter for
78
the `GET` operation of `/foos` path.
79
80
-```yaml
81
-# api/config/services.yaml
82
-App\OpenApi\OpenApiFactory:
83
- decorates: 'api_platform.openapi.factory'
84
- arguments: ['@App\OpenApi\OpenApiFactory.inner']
85
- autoconfigure: false
86
-```
87
-
88
```php
89
<?php
90
namespace App\OpenApi;
91
92
use ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface;
93
use ApiPlatform\OpenApi\OpenApi;
94
use ApiPlatform\OpenApi\Model;
+use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
95
+#[AsDecorator(decorates: 'api_platform.openapi.factory')]
96
class OpenApiFactory implements OpenApiFactoryInterface
97
{
98
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments