Skip to content

Commit

Permalink
Merge pull request #1546 from ConductionNL/feature/NH-7/log-request-h…
Browse files Browse the repository at this point in the history
…eaders

add loggingConfig to the fromSchema function
  • Loading branch information
smisidjan authored Sep 12, 2023
2 parents 7fb0b94 + b831dc0 commit ac4fdac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/Entity/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ public function fromSchema(array $schema, array $default = [])
array_key_exists('tags', $schema) ? $this->setTags($schema['tags']) : '';
array_key_exists('entities', $schema) ? $this->setEntities($schema['entities']) : '';

if (array_key_exists('loggingConfig', $schema) === true) {
$this->setLoggingConfig($schema['loggingConfig']);
}

/*@depricated kept here for lagacy */
$this->setMethod(array_key_exists('method', $schema) ? $schema['method'] : 'GET');
$this->setOperationType(array_key_exists('operationType', $schema) ? $schema['operationType'] : 'GET');
Expand Down

0 comments on commit ac4fdac

Please sign in to comment.