Skip to content

Commit cc7be75

Browse files
committed
Update AbstractDocumentation namespace
1 parent 8339956 commit cc7be75

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/Serializer/AbstractDocumentationNormalizer.php renamed to src/OpenApi/Serializer/AbstractDocumentationNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Core\Serializer;
14+
namespace ApiPlatform\Core\OpenApi\Serializer;
1515

1616
use ApiPlatform\Core\Api\OperationMethodResolverInterface;
1717
use ApiPlatform\Core\Api\OperationType;

src/OpenApi/Serializer/DocumentationNormalizer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
2727
use ApiPlatform\Core\Operation\Factory\SubresourceOperationFactoryInterface;
2828
use ApiPlatform\Core\PathResolver\OperationPathResolverInterface;
29-
use ApiPlatform\Core\Serializer\AbstractDocumentationNormalizer;
3029
use Psr\Container\ContainerInterface;
3130
use Symfony\Component\PropertyInfo\Type;
3231
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;

src/Swagger/Serializer/DocumentationNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
2525
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
2626
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
27+
use ApiPlatform\Core\OpenApi\Serializer\AbstractDocumentationNormalizer;
2728
use ApiPlatform\Core\Operation\Factory\SubresourceOperationFactoryInterface;
2829
use ApiPlatform\Core\PathResolver\OperationPathResolverInterface;
29-
use ApiPlatform\Core\Serializer\AbstractDocumentationNormalizer;
3030
use Psr\Container\ContainerInterface;
3131
use Symfony\Component\PropertyInfo\Type;
3232
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;

tests/OpenApi/Serializer/DocumentationNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class DocumentationNormalizerTest extends TestCase
5858
{
5959
/**
6060
* @group legacy
61-
* @expectedDeprecation Passing an instance of ApiPlatform\Core\Api\UrlGeneratorInterface to ApiPlatform\Core\Serializer\AbstractDocumentationNormalizer::__construct() is deprecated since version 2.1 and will be removed in 3.0.
61+
* @expectedDeprecation Passing an instance of ApiPlatform\Core\Api\UrlGeneratorInterface to ApiPlatform\Core\OpenApi\Serializer\AbstractDocumentationNormalizer::__construct() is deprecated since version 2.1 and will be removed in 3.0.
6262
*/
6363
public function testLegacyConstruct()
6464
{

tests/Swagger/Serializer/DocumentationNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class DocumentationNormalizerTest extends TestCase
5757
{
5858
/**
5959
* @group legacy
60-
* @expectedDeprecation Passing an instance of ApiPlatform\Core\Api\UrlGeneratorInterface to ApiPlatform\Core\Serializer\AbstractDocumentationNormalizer::__construct() is deprecated since version 2.1 and will be removed in 3.0.
60+
* @expectedDeprecation Passing an instance of ApiPlatform\Core\Api\UrlGeneratorInterface to ApiPlatform\Core\OpenApi\Serializer\AbstractDocumentationNormalizer::__construct() is deprecated since version 2.1 and will be removed in 3.0.
6161
*/
6262
public function testLegacyConstruct()
6363
{

0 commit comments

Comments
 (0)