Skip to content

Commit 6499e0a

Browse files
authored
fix: deprecate url generator interface namespace (#6575)
1 parent 1d85b17 commit 6499e0a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Api/UrlGeneratorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Fabien Potencier <[email protected]>
3333
* @author Tobias Schultze <http://tobion.de>
3434
* @copyright Fabien Potencier
35+
*
36+
* @deprecated moved to ApiPlatform\Metadata\UrlGeneratorInterface
3537
*/
3638
interface UrlGeneratorInterface
3739
{

src/deprecation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
ApiPlatform\Action\NotFoundAction::class => ApiPlatform\Symfony\Action\NotFoundAction::class,
3131
ApiPlatform\Action\PlaceholderAction::class => ApiPlatform\Symfony\Action\PlaceholderAction::class,
3232
ApiPlatform\Api\Entrypoint::class => ApiPlatform\Documentation\Entrypoint::class,
33+
ApiPlatform\Api\UrlGeneratorInterface::class => ApiPlatform\Metadata\UrlGeneratorInterface::class,
3334
ApiPlatform\Exception\ExceptionInterface::class => ApiPlatform\Metadata\Exception\ExceptionInterface::class,
3435
ApiPlatform\Exception\InvalidArgumentException::class => ApiPlatform\Metadata\Exception\InvalidArgumentException::class,
3536
ApiPlatform\Exception\InvalidIdentifierException::class => ApiPlatform\Metadata\Exception\InvalidIdentifierException::class,

0 commit comments

Comments
 (0)