Skip to content

Commit f035ae9

Browse files
committed
fix(symfony): use state namespace instead of api
1 parent 2b0e6f2 commit f035ae9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Bundle/Resources/config/api.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<service id="ApiPlatform\Api\IdentifiersExtractorInterface" alias="api_platform.api.identifiers_extractor" />
134134
<service id="ApiPlatform\Metadata\IdentifiersExtractorInterface" alias="api_platform.api.identifiers_extractor" />
135135

136-
<service id="api_platform.uri_variables.converter" class="ApiPlatform\Api\UriVariablesConverter" public="false">
136+
<service id="api_platform.uri_variables.converter" class="ApiPlatform\Metadata\UriVariablesConverter" public="false">
137137
<argument type="service" id="api_platform.metadata.property.metadata_factory" />
138138
<argument type="service" id="api_platform.metadata.resource.metadata_collection_factory" />
139139
<argument type="tagged" tag="api_platform.uri_variables.transformer" />

src/Symfony/Controller/MainController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
namespace ApiPlatform\Symfony\Controller;
1515

16-
use ApiPlatform\Api\UriVariablesConverterInterface;
1716
use ApiPlatform\Exception\InvalidIdentifierException;
1817
use ApiPlatform\Exception\InvalidUriVariableException;
1918
use ApiPlatform\Metadata\Error;
2019
use ApiPlatform\Metadata\Exception\RuntimeException;
2120
use ApiPlatform\Metadata\HttpOperation;
2221
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
22+
use ApiPlatform\Metadata\UriVariablesConverterInterface;
2323
use ApiPlatform\State\ProcessorInterface;
2424
use ApiPlatform\State\ProviderInterface;
2525
use ApiPlatform\State\UriVariablesResolverTrait;

src/Symfony/EventListener/ExceptionListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Symfony\EventListener;
1515

1616
use ApiPlatform\Metadata\Error;
17-
use ApiPlatform\Util\RequestAttributesExtractor;
17+
use ApiPlatform\State\Util\RequestAttributesExtractor;
1818
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
1919
use Symfony\Component\HttpKernel\EventListener\ErrorListener;
2020

0 commit comments

Comments
 (0)