Skip to content

Commit

Permalink
Configuration: Put parameters in quotes as it is deprecated without
Browse files Browse the repository at this point in the history
In order to avoid miss interpretation in yaml, symfony deprecated the
usage of parameters (`%something%`) without quotes.
  • Loading branch information
ztec committed Dec 20, 2018
1 parent 8432e80 commit 27ff098
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is useful when you want to transform domain/business exception from your co
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/RiperFr/ExceptionTransformerBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/RiperFr/ExceptionTransformerBundle/?branch=master)
![License CC-BY-4](https://img.shields.io/badge/licence-CC--BY--4.0-blue.svg)
![php version](https://img.shields.io/badge/php->=5.3.5,%205.4,%205.5,%205.6,%207-blue.svg)
![symfony version](https://img.shields.io/badge/symfony-2.6,%202.7,%202.8,%203-blue.svg)
![symfony version](https://img.shields.io/badge/symfony-2.6,%202.7,%202.8,%203.*-blue.svg)


[![SensioLabsInsight](https://insight.sensiolabs.com/projects/f72a264e-1e57-4973-b953-8fe3465792e9/big.png)](https://insight.sensiolabs.com/projects/f72a264e-1e57-4973-b953-8fe3465792e9)
Expand Down
6 changes: 3 additions & 3 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ services:
#The name of the service is referenced in the code. Caution if changed
riper.exception_transformer.transformers.http_exception_transformer:
class: Riper\Bundle\ExceptionTransformerBundle\ExceptionTransformer\HttpExceptionTransformer
arguments : [ %riper_exception_mapping.shortcuts% ]
arguments : [ "%riper_exception_mapping.shortcuts%" ]
calls :
- [ "addMap" , [ %riper_exception_mapping.exception_map% ] ]
- [ "addMap" , [ "%riper_exception_mapping.exception_map%" ] ]
tags:
- { name: riper.exception.transformer, namespace_scope: "" }

Expand All @@ -22,6 +22,6 @@ services:

# riper.error_handler.exception_to_http_exception_listener:
# class: Riper\Bundle\ErrorRendererBundle\Listener\ExceptionToHttpExceptionListener
# arguments : [ %riper_exception_mapping% ]
# arguments : [ "%riper_exception_mapping%" ]
# tags:
# - { name : kernel.event_subscriber }

0 comments on commit 27ff098

Please sign in to comment.