mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fixed typos
This commit is contained in:
parent
eddba56c66
commit
dbc3fcbb73
@ -369,7 +369,7 @@ class ApiDoc
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the responsed data as processed by the parsers - same format as parameters
|
* Sets the response data as processed by the parsers - same format as parameters
|
||||||
*
|
*
|
||||||
* @param array $response
|
* @param array $response
|
||||||
*/
|
*/
|
||||||
|
@ -152,7 +152,7 @@ class JmsMetadataParser implements ParserInterface
|
|||||||
* Figure out a normalized data type (for documentation), and get a
|
* Figure out a normalized data type (for documentation), and get a
|
||||||
* nested class name, if available.
|
* nested class name, if available.
|
||||||
*
|
*
|
||||||
* @param PropertyMetadata $type
|
* @param PropertyMetadata $item
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function processDataType(PropertyMetadata $item)
|
protected function processDataType(PropertyMetadata $item)
|
||||||
|
@ -90,7 +90,7 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
$this->assertTrue(is_array($array['filters']));
|
$this->assertTrue(is_array($array['filters']));
|
||||||
$this->assertNull($annotation->getInput());
|
$this->assertNull($annotation->getInput());
|
||||||
|
|
||||||
$annotation2 = $extractor->get('nemlio.test.controller:indexAction', 'test_service_route_1');
|
$annotation2 = $extractor->get('nelmio.test.controller:indexAction', 'test_service_route_1');
|
||||||
$annotation2->getRoute()
|
$annotation2->getRoute()
|
||||||
->setDefault('_controller', $annotation->getRoute()->getDefault('_controller'))
|
->setDefault('_controller', $annotation->getRoute()->getDefault('_controller'))
|
||||||
->compile(); // compile as we changed a default value
|
->compile(); // compile as we changed a default value
|
||||||
@ -118,7 +118,7 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
|
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
|
|
||||||
$data = $extractor->get('nemlio.test.controller:indexAction', 'invalid_route');
|
$data = $extractor->get('nelmio.test.controller:indexAction', 'invalid_route');
|
||||||
|
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
|
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
|
|
||||||
$data = $extractor->get('nemlio.test.controller', 'test_service_route_1');
|
$data = $extractor->get('nelmio.test.controller', 'test_service_route_1');
|
||||||
|
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
|
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
|
|
||||||
$data = $extractor->get('nemlio.test.controller:anotherAction', 'test_service_route_1');
|
$data = $extractor->get('nelmio.test.controller:anotherAction', 'test_service_route_1');
|
||||||
|
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ twig:
|
|||||||
strict_variables: %kernel.debug%
|
strict_variables: %kernel.debug%
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nemlio.test.controller:
|
nelmio.test.controller:
|
||||||
class: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestServiceController
|
class: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestServiceController
|
||||||
nelmio.test.type:
|
nelmio.test.type:
|
||||||
class: Nelmio\ApiDocBundle\Tests\Fixtures\Form\DependencyType
|
class: Nelmio\ApiDocBundle\Tests\Fixtures\Form\DependencyType
|
||||||
|
@ -71,24 +71,24 @@ test_route_13:
|
|||||||
|
|
||||||
test_service_route_1:
|
test_service_route_1:
|
||||||
pattern: /tests.{_format}
|
pattern: /tests.{_format}
|
||||||
defaults: { _controller: nemlio.test.controller:indexAction, _format: json }
|
defaults: { _controller: nelmio.test.controller:indexAction, _format: json }
|
||||||
requirements:
|
requirements:
|
||||||
_method: GET
|
_method: GET
|
||||||
|
|
||||||
test_service_route_2:
|
test_service_route_2:
|
||||||
pattern: /tests.{_format}
|
pattern: /tests.{_format}
|
||||||
host: api.test.dev
|
host: api.test.dev
|
||||||
defaults: { _controller: nemlio.test.controller:postTestAction, _format: json }
|
defaults: { _controller: nelmio.test.controller:postTestAction, _format: json }
|
||||||
requirements:
|
requirements:
|
||||||
_method: POST
|
_method: POST
|
||||||
|
|
||||||
test_service_route_3:
|
test_service_route_3:
|
||||||
pattern: /another
|
pattern: /another
|
||||||
defaults: { _controller: nemlio.test.controller:anotherAction }
|
defaults: { _controller: nelmio.test.controller:anotherAction }
|
||||||
|
|
||||||
test_service_route_4:
|
test_service_route_4:
|
||||||
pattern: /any
|
pattern: /any
|
||||||
defaults: { _controller: nemlio.test.controller:anyAction, _format: json }
|
defaults: { _controller: nelmio.test.controller:anyAction, _format: json }
|
||||||
|
|
||||||
NelmioApiDocBundle:
|
NelmioApiDocBundle:
|
||||||
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
|
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user