| 1 | <?php |
||
| 7 | class UnderscoreKeysTransformer implements TransformerInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @inheritdoc |
||
| 11 | */ |
||
| 12 | 2 | public function transform(ParameterBag $item) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @param array $arr |
||
| 21 | */ |
||
| 22 | 2 | protected function underscoreKeys(array &$arr) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Copied from Doctrine's UnderscoreNamingStrategy. |
||
| 39 | * |
||
| 40 | * @param string $string |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 2 | protected function underscore($string) |
|
| 50 | } |
||
| 51 |