Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix processorOptions configuration #107

Merged
merged 3 commits into from Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fix `processorOptions` in yaml configuration

## 2.0.1 - 2018-01-31
### Fixed
Expand Down
4 changes: 3 additions & 1 deletion src/DependencyInjection/Configuration.php
Expand Up @@ -107,7 +107,9 @@ public function getConfigTreeBuilder()
->prototype('scalar')->end()
->end()
->arrayNode('processorOptions')
->prototype('scalar')->end()
->arrayPrototype()
->prototype('scalar')->end()
->end()
->end()
->end()
->end();
Expand Down
7 changes: 6 additions & 1 deletion test/DependencyInjection/SentryExtensionTest.php
Expand Up @@ -343,7 +343,12 @@ public function test_that_it_sets_all_sentry_options()
'install_shutdown_handler' => false,
'processors' => ['processor1', 'processor2'],
'processorOptions' => [
'processorOption1' => 'asasdf',
'processor1' => [
'processorOption1' => 'asasdf',
],
'processor2' => [
'processorOption2' => 'asasdf',
],
],
];

Expand Down