Skip to content

Commit

Permalink
config improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
vodevel committed Nov 18, 2023
1 parent f13dd89 commit 25b35f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Describer to the [nelmio/api-doc-bundle](https://github.com/nelmio/NelmioApiDocB
```shell
composer require vodevel/api-doc-bundle-type-describer
```

## Usage

Unfortunately, it doesn't work without a ```Tag``` attribute yet, don't forget to add it.
Expand Down
5 changes: 5 additions & 0 deletions Resources/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
services:
_defaults:
autowire: true
autoconfigure: true

requestDescriber:
class: 'Vodevel\ApiDocBundleTypeDescriber\Describer\RequestBodyDescriber'
responseDescriber:
class: 'Vodevel\ApiDocBundleTypeDescriber\Describer\ResponseBodyDescriber'

Vodevel\ApiDocBundleTypeDescriber\Describer\TypeDescriber:
arguments:
$requestDescriber: '@requestDescriber'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Vodevel\ApiDocBundleTypeDescriber\DependencyInjection\VodevelApiDocTypeDescriberExtension;

class VodevelApiDocBundleTypeDescriber extends Bundle
class VodevelApiDocBundleTypeDescriberBundle extends Bundle
{
public function getContainerExtension(): ?ExtensionInterface
{
Expand Down

0 comments on commit 25b35f5

Please sign in to comment.