Skip to content

Commit

Permalink
chore: name autowired services explicitely
Browse files Browse the repository at this point in the history
  • Loading branch information
BigZ committed Jul 3, 2019
1 parent c1b30b5 commit fc6befd
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ services:
wizards_rest.entity_transformer:
class: WizardsRest\Transformer\EntityTransformer
arguments:
- '@wizards_rest.reader'
- '@wizards_rest.reader'

wizards_rest.object_manager:
class: ''

wizards_rest.paginator:
class: ''
arguments:
- '@router'
- '@router'

WizardsRest\Serializer:
arguments:
- '@wizards_rest.fractal_manager'
- '@wizards_rest.fractal_manager'

WizardsRest\CollectionManager:
arguments:
- '@wizards_rest.paginator'
- '@wizards_rest.object_manager'
- '@wizards_rest.paginator'
- '@wizards_rest.object_manager'

WizardsRest\Provider:
arguments:
- '@wizards_rest.entity_transformer'
- '@wizards_rest.fractal_manager'
- '@wizards_rest.entity_transformer'
- '@wizards_rest.fractal_manager'

wizards_rest.format_options_getter:
class: Wizards\RestBundle\Services\FormatOptions
Expand All @@ -42,16 +42,23 @@ services:
- '@wizards_rest.paginator'
- '@annotation_reader'

Wizards\RestBundle\Subscriber\SerializationSubscriber:
wizards_rest.serialization_subscriber:
class: Wizards\RestBundle\Subscriber\SerializationSubscriber
tags:
- { name: kernel.event_subscriber }
arguments:
- '@WizardsRest\Serializer'
- '@wizards_rest.fractal_resource_provider'
- '@wizards_rest.format_options_getter'

Wizards\RestBundle\Subscriber\ExceptionSubscriber:
wizards_rest.exception_subscriber:
class: Wizards\RestBundle\Subscriber\ExceptionSubscriber
tags:
- { name: kernel.event_subscriber }
arguments:
- '@logger'

wizards_rest.psr7_param_converter:
class: Wizards\RestBundle\ParamConverter\Psr7ParamConverter
tags:
- { name: request.param_converter, priority: -2, converter: wizards_rest.psr7_param_converter }

0 comments on commit fc6befd

Please sign in to comment.