mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-12 10:36:09 +03:00
Fix cs
This commit is contained in:
parent
f63ab23fe5
commit
6bce4e0a8a
@ -118,7 +118,10 @@ class TestKernel extends Kernel
|
||||
// Filter routes
|
||||
$c->loadFromExtension('nelmio_api_doc', [
|
||||
'areas' => [
|
||||
'default' => ['path_patterns' => ['^/api(?!/admin)'], 'host_patterns' => ['^api\.'], 'documentation' => [
|
||||
'default' => [
|
||||
'path_patterns' => ['^/api(?!/admin)'],
|
||||
'host_patterns' => ['^api\.'],
|
||||
'documentation' => [
|
||||
'info' => [
|
||||
'title' => 'My Test App',
|
||||
],
|
||||
@ -134,8 +137,12 @@ class TestKernel extends Kernel
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
]],
|
||||
'test' => ['path_patterns' => ['^/test'], 'host_patterns' => ['^api-test\.'], 'documentation' => [
|
||||
],
|
||||
],
|
||||
'test' => [
|
||||
'path_patterns' => ['^/test'],
|
||||
'host_patterns' => ['^api-test\.'],
|
||||
'documentation' => [
|
||||
'info' => [
|
||||
'title' => 'My Test App',
|
||||
],
|
||||
@ -151,31 +158,12 @@ class TestKernel extends Kernel
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
]],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/*
|
||||
* 'documentation' => [
|
||||
'info' => [
|
||||
'title' => 'My Test App',
|
||||
],
|
||||
'definitions' => [
|
||||
'Test' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
'parameters' => [
|
||||
'test' => [
|
||||
'name' => 'id',
|
||||
'in' => 'path',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
*/
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user