Skip to content

Commit cffe6fe

Browse files
Merge pull request #4827 from dannyvw/core-namespace
Remove core namespace leftovers
2 parents e7417cb + bb81618 commit cffe6fe

32 files changed

+24
-119
lines changed

src/Api/FilterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface FilterInterface
4545
* ]
4646
* The description can contain additional data specific to a filter.
4747
*
48-
* @see \ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer::getFiltersParameters
48+
* @see \ApiPlatform\OpenApi\Factory\OpenApiFactory::getFiltersParameters
4949
*/
5050
public function getDescription(string $resourceClass): array;
5151
}

src/Api/QueryParameterValidator/Validator/ValidatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface ValidatorInterface
1717
{
1818
/**
1919
* @param string $name the parameter name to validate
20-
* @param array<string, mixed> $filterDescription the filter descriptions as returned by `ApiPlatform\Core\Api\FilterInterface::getDescription()`
20+
* @param array<string, mixed> $filterDescription the filter descriptions as returned by `\ApiPlatform\Api\FilterInterface::getDescription()`
2121
* @param array<string, mixed> $queryParameters the list of query parameter
2222
*/
2323
public function validate(string $name, array $filterDescription, array $queryParameters): array;

src/JsonSchema/TypeFactory.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ public function __construct(ResourceClassResolverInterface $resourceClassResolve
4141
$this->resourceClassResolver = $resourceClassResolver;
4242
}
4343

44-
/**
45-
* SchemaFactoryInterface|LegacySchemaFactoryInterface.
46-
*
47-
* @param mixed $schemaFactory
48-
*/
49-
public function setSchemaFactory($schemaFactory): void
44+
public function setSchemaFactory(SchemaFactoryInterface $schemaFactory): void
5045
{
5146
$this->schemaFactory = $schemaFactory;
5247
}

src/Symfony/Bundle/DependencyInjection/Compiler/FilterPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,5 @@ public function process(ContainerBuilder $container)
4646
}
4747

4848
$container->getDefinition('api_platform.filter_locator')->addArgument($filters);
49-
$container->getDefinition('api_platform.filter_collection_factory')->addArgument(array_keys($filters));
5049
}
5150
}

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515
</service>
1616
<service id="ApiPlatform\Api\ResourceClassResolverInterface" alias="api_platform.resource_class_resolver" />
1717

18-
<service id="api_platform.route_name_resolver" class="ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolver" public="false">
19-
<argument type="service" id="api_platform.router" />
20-
</service>
21-
22-
<service id="api_platform.route_name_resolver.cached" class="ApiPlatform\Core\Bridge\Symfony\Routing\CachedRouteNameResolver" decorates="api_platform.route_name_resolver" decoration-priority="-10" public="false">
23-
<argument type="service" id="api_platform.cache.route_name_resolver" />
24-
<argument type="service" id="api_platform.route_name_resolver.cached.inner" />
25-
</service>
26-
2718
<service id="ApiPlatform\Api\UrlGeneratorInterface" alias="api_platform.router" />
2819

2920
<service id="api_platform.router" class="ApiPlatform\Symfony\Routing\Router" public="false">

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
<service id="api_platform.filter_locator" class="Symfony\Component\DependencyInjection\ServiceLocator">
1111
<tag name="container.service_locator" />
1212
</service>
13-
14-
<service id="api_platform.filter_collection_factory" class="ApiPlatform\Core\Api\FilterCollectionFactory" />
15-
16-
<service id="api_platform.filters" class="ApiPlatform\Core\Api\FilterCollection">
17-
<factory service="api_platform.filter_collection_factory" method="createFilterCollectionFromLocator" />
18-
<argument type="service" id="api_platform.filter_locator" />
19-
</service>
2013
</services>
2114

2215
</container>

src/Symfony/Bundle/Resources/config/metadata/property_name.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
<service id="api_platform.metadata.property.name_collection_factory" alias="api_platform.metadata.property.name_collection_factory.property_info" />
1111
<service id="ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface" alias="api_platform.metadata.property.name_collection_factory" />
12-
<service id="ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface" alias="api_platform.metadata.property.name_collection_factory" />
1312

1413
<service id="api_platform.metadata.property.name_collection_factory.property_info" class="ApiPlatform\Metadata\Property\Factory\PropertyInfoPropertyNameCollectionFactory" public="false">
1514
<argument type="service" id="api_platform.property_info" />

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
66

77
<services>
8-
<service id="api_platform.identifier.uuid_normalizer" class="ApiPlatform\Core\Bridge\RamseyUuid\Identifier\Normalizer\UuidNormalizer" public="false">
9-
<tag name="api_platform.identifier.denormalizer" priority="-100" />
10-
</service>
11-
128
<service id="api_platform.serializer.uuid_denormalizer" class="ApiPlatform\RamseyUuid\Serializer\UuidDenormalizer" public="false">
139
<tag name="serializer.normalizer" />
1410
</service>

src/Symfony/Bundle/Resources/config/symfony/uid.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
66

77
<services>
8-
<service id="api_platform.identifier.symfony_ulid_normalizer" class="ApiPlatform\Core\Bridge\Symfony\Identifier\Normalizer\UlidNormalizer" public="false">
9-
<tag name="api_platform.identifier.denormalizer" />
10-
</service>
11-
12-
<service id="api_platform.identifier.symfony_uuid_normalizer" class="ApiPlatform\Core\Bridge\Symfony\Identifier\Normalizer\UuidNormalizer" public="false">
13-
<tag name="api_platform.identifier.denormalizer" />
14-
</service>
15-
168
<service id="api_platform.symfony.uri_variables.transformer.ulid" class="ApiPlatform\Symfony\UriVariableTransformer\UlidUriVariableTransformer" public="false">
179
<tag name="api_platform.uri_variables.transformer" />
1810
</service>

tests/Doctrine/Orm/PaginatorTest.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\Tests\Bridge\Doctrine\Orm;
14+
namespace ApiPlatform\Tests\Doctrine\Orm;
1515

1616
use ApiPlatform\Doctrine\Orm\Paginator;
1717
use ApiPlatform\Exception\InvalidArgumentException;

0 commit comments

Comments
 (0)