-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0714470
commit 190e01c
Showing
11 changed files
with
152 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/vendor/ | ||
/tools/ | ||
/bin/ | ||
/tmp/ | ||
/.phpunit.cache/ | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="grumphp" version="^2.5.0" installed="2.5.0" location="./tools/grumphp" copy="false"/> | ||
<phar name="grumphp" version="^2.5.0" installed="2.5.0" location="./bin/grumphp" copy="false"/> | ||
<phar name="phpmd" version="^2.15.0" installed="2.15.0" location="./bin/phpmd" copy="false"/> | ||
<phar name="phpcs" version="^3.7.1" installed="3.7.1" location="./bin/phpcs" copy="false"/> | ||
<phar name="phpstan" version="^1.9.2" installed="1.9.2" location="./bin/phpstan" copy="false"/> | ||
</phive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
correlation_id: | ||
response_header_name: 'X-Correlation-ID' | ||
request_header_name: 'X-Correlation-ID' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
grumphp: | ||
ascii: | ||
failed: resources/grumphp-grumpy.txt | ||
succeeded: resources/grumphp-happy.txt | ||
fixer: | ||
enabled: true | ||
fix_by_default: true | ||
tasks: | ||
phpstan: | ||
autoload_file: ~ | ||
configuration: phpstan.neon | ||
level: null | ||
force_patterns: [] | ||
ignore_patterns: [] | ||
triggered_by: ['php'] | ||
memory_limit: "-1" | ||
use_grumphp_paths: true | ||
phpmd: | ||
whitelist_patterns: [] | ||
exclude: [] | ||
report_format: text | ||
ruleset: ['cleancode', 'codesize', 'naming', 'design', 'unusedcode'] | ||
triggered_by: ['php'] | ||
phpcs: | ||
standard: [] | ||
severity: ~ | ||
error_severity: ~ | ||
warning_severity: ~ | ||
tab_width: ~ | ||
report: full | ||
report_width: ~ | ||
whitelist_patterns: [] | ||
encoding: ~ | ||
ignore_patterns: [] | ||
sniffs: [] | ||
triggered_by: [php] | ||
exclude: [] | ||
show_sniffs_error_path: true | ||
phpunit: | ||
config_file: phpunit.xml.dist | ||
testsuite: ~ | ||
group: [] | ||
exclude_group: [] | ||
always_execute: false | ||
order: null |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
All good! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Phauthentic\CorrelationIdBundle\DependencyInjection; | ||
|
||
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | ||
use Symfony\Component\Config\Definition\ConfigurationInterface; | ||
|
||
class Configuration implements ConfigurationInterface | ||
{ | ||
public function getConfigTreeBuilder(): TreeBuilder | ||
{ | ||
$treeBuilder = new TreeBuilder('correlation_id'); | ||
|
||
$treeBuilder->getRootNode() | ||
->children() | ||
->booleanNode('passthrough') | ||
->defaultValue(false) | ||
->end() | ||
->scalarNode('response_header_name') | ||
->defaultValue('X-Correlation-ID') | ||
->end() | ||
->scalarNode('request_header_name') | ||
->defaultValue('X-Correlation-ID') | ||
->end() | ||
->end(); | ||
|
||
return $treeBuilder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
services: | ||
Phauthentic\CorrelationIdBundle\EventSubscriber\CorrelationIdSubscriber: | ||
arguments: | ||
$config: '%correlation_id%' | ||
tags: | ||
- { name: 'kernel.event_subscriber' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters