Skip to content

Commit

Permalink
Merge branch 'introduce-processors-configuration' of github.com:Darka…
Browse files Browse the repository at this point in the history
…OnLine/L5-Swagger into introduce-processors-configuration
  • Loading branch information
DarkaOnLine committed Aug 28, 2024
2 parents 917ee5f + 52af8f6 commit 60f68ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions config/l5-swagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@

'scanOptions' => [
/**
* Configuration for default processors. Allows to pass processors configuration to swagger-php
* Configuration for default processors. Allows to pass processors configuration to swagger-php.
*
* @link https://zircote.github.io/swagger-php/reference/processors.html
*/
'default_processors_configuration' => [
/** Example */
/**
'operationId.hash' => true,
'pathFilter' => [
'tags' => [
'/pets/',
'/store/',
],
],
*/
/** Example */
/**
* 'operationId.hash' => true,
* 'pathFilter' => [
* 'tags' => [
* '/pets/',
* '/store/',
* ],
* ],.
*/
],

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function createOpenApiGenerator(): OpenApiGenerator

// Only from zircote/swagger-php 4
if (
!empty($this->scanOptions['default_processors_configuration'])
! empty($this->scanOptions['default_processors_configuration'])
&& is_array($this->scanOptions['default_processors_configuration'])
&& method_exists($generator, 'setConfig')
) {
Expand Down

0 comments on commit 60f68ee

Please sign in to comment.