Skip to content

Commit 92fe17c

Browse files
committed
chore: move non-legacy api namespace
1 parent a7de6b1 commit 92fe17c

File tree

125 files changed

+196
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+196
-169
lines changed

src/Action/EntrypointAction.php

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

1414
namespace ApiPlatform\Action;
1515

16-
use ApiPlatform\Core\Api\Entrypoint;
16+
use ApiPlatform\Api\Entrypoint;
1717
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
1818

1919
/**

src/Core/Api/Entrypoint.php renamed to src/Api/Entrypoint.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\Api;
14+
namespace ApiPlatform\Api;
1515

1616
use ApiPlatform\Core\Metadata\Resource\ResourceNameCollection;
1717

src/Core/Api/FilterLocatorTrait.php renamed to src/Api/FilterLocatorTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Core\Api;
14+
namespace ApiPlatform\Api;
1515

16+
use ApiPlatform\Core\Api\FilterCollection;
1617
use ApiPlatform\Exception\InvalidArgumentException;
1718
use Psr\Container\ContainerInterface;
1819

src/Core/Api/FormatMatcher.php renamed to src/Api/FormatMatcher.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\Api;
14+
namespace ApiPlatform\Api;
1515

1616
/**
1717
* Matches a mime type to a format.

src/Api/IdentifiersExtractor.php

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

1414
namespace ApiPlatform\Api;
1515

16-
use ApiPlatform\Core\Api\ResourceClassResolverInterface;
1716
use ApiPlatform\Core\Identifier\CompositeIdentifierParser;
1817
use ApiPlatform\Exception\RuntimeException;
1918
use ApiPlatform\Metadata\GraphQl\Operation as GraphQlOperation;

src/Api/QueryParameterValidator/QueryParameterValidator.php

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

1414
namespace ApiPlatform\Api\QueryParameterValidator;
1515

16-
use ApiPlatform\Core\Api\FilterLocatorTrait;
16+
use ApiPlatform\Api\FilterLocatorTrait;
1717
use ApiPlatform\Exception\FilterValidationException;
1818
use Psr\Container\ContainerInterface;
1919

src/Core/Api/ResourceClassResolver.php renamed to src/Api/ResourceClassResolver.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\Api;
14+
namespace ApiPlatform\Api;
1515

1616
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
1717
use ApiPlatform\Exception\InvalidArgumentException;

src/Core/Annotation/ApiFilter.php

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

1414
namespace ApiPlatform\Core\Annotation;
1515

16-
use ApiPlatform\Core\Api\FilterInterface;
16+
use ApiPlatform\Api\FilterInterface;
1717
use ApiPlatform\Exception\InvalidArgumentException;
1818

1919
/**

src/Core/Api/FilterCollectionFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*
2121
* @author Baptiste Meyer <[email protected]>
2222
*
23+
* @deprecated see FilterCollection
24+
*
2325
* @internal
2426
*/
2527
class FilterCollectionFactory

src/Doctrine/EventListener/PublishMercureUpdatesListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Doctrine\EventListener;
1515

1616
use ApiPlatform\Api\IriConverterInterface;
17-
use ApiPlatform\Core\Api\ResourceClassResolverInterface;
17+
use ApiPlatform\Api\ResourceClassResolverInterface;
1818
use ApiPlatform\Core\Api\UrlGeneratorInterface;
1919
use ApiPlatform\Exception\InvalidArgumentException;
2020
use ApiPlatform\Exception\OperationNotFoundException;

0 commit comments

Comments
 (0)