Skip to content

Commit ff72df2

Browse files
dunglasabluchet
authored andcommitted
Deprecate NelmioApiDoc 2 support
Deprecate in the constructor
1 parent 9f1be36 commit ff72df2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/Bridge/NelmioApiDoc/Extractor/AnnotationsProvider/ApiPlatformProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function __construct(ResourceNameCollectionFactoryInterface $resourceName
5353
$this->documentationNormalizer = $documentationNormalizer;
5454
$this->resourceMetadataFactory = $resourceMetadataFactory;
5555
$this->operationMethodResolver = $operationMethodResolver;
56+
57+
@trigger_error('The '.__NAMESPACE__.'\ApiPlatformProvider class is deprecated since version 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.', E_USER_DEPRECATED);
5658
}
5759

5860
/**

src/Bridge/NelmioApiDoc/Parser/ApiPlatformParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function __construct(ResourceMetadataFactoryInterface $resourceMetadataFa
5353
$this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
5454
$this->propertyMetadataFactory = $propertyMetadataFactory;
5555
$this->nameConverter = $nameConverter;
56+
57+
@trigger_error('The '.__NAMESPACE__.'\ApiPlatformParser class is deprecated since version 2.2 and will be removed in 3.0. NelmioApiDocBundle 2 has native support for API Platform.', E_USER_DEPRECATED);
5658
}
5759

5860
/**

tests/Bridge/NelmioApiDoc/Extractor/AnnotationsProvider/ApiPlatformProviderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
/**
3434
* @author Teoh Han Hui <[email protected]>
35+
*
36+
* @group legacy
37+
* @expectedDeprecation The ApiPlatform\Core\Bridge\NelmioApiDoc\Extractor\AnnotationsProvider\ApiPlatformProvider class is deprecated since version 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.
3538
*/
3639
class ApiPlatformProviderTest extends \PHPUnit_Framework_TestCase
3740
{

tests/Bridge/NelmioApiDoc/Parser/ApiPlatformParserTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
/**
3434
* @author Teoh Han Hui <[email protected]>
35+
*
36+
* @group legacy
37+
* @expectedDeprecation The ApiPlatform\Core\Bridge\NelmioApiDoc\Parser\ApiPlatformProvider class is deprecated since version 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.
3538
*/
3639
class ApiPlatformParserTest extends \PHPUnit_Framework_TestCase
3740
{

0 commit comments

Comments
 (0)