Skip to content

Commit 0da21b5

Browse files
committed
fix(deprecation): stubs to load deprecated classes
1 parent e21a01a commit 0da21b5

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@
102102
"phpdocumentor/reflection-docblock": "To support extracting metadata from PHPDoc.",
103103
"psr/cache-implementation": "To use metadata caching.",
104104
"ramsey/uuid": "To support Ramsey's UUID identifiers.",
105-
"rector/rector-src": "To support converting PHP annotations to attributes.",
106105
"symfony/cache": "To have metadata caching when using Symfony integration.",
107106
"symfony/config": "To load XML configuration files.",
108107
"symfony/expression-language": "To use authorization features.",
109108
"symfony/security": "To use authorization features.",
110109
"symfony/twig-bundle": "To use the Swagger UI integration.",
111110
"symfony/uid": "To support Symfony UUID/ULID identifiers.",
111+
"symfony/messenger": "To support messenger integration.",
112112
"symfony/web-profiler-bundle": "To use the data collector.",
113113
"webonyx/graphql-php": "To support GraphQL."
114114
},

src/deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class_alias($interfaceName, $oldInterfaceName);
206206

207207
// Bridge\Symfony\Validator
208208
ApiPlatform\Core\Bridge\Symfony\Validator\EventListener\ValidationExceptionListener::class => ApiPlatform\Symfony\Validator\EventListener\ValidationExceptionListener::class,
209-
ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException::class => ApiPlatform\Validator\Exception\ValidationException::class,
209+
ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException::class => ApiPlatform\Symfony\Validator\Exception\ValidationException::class,
210210
ApiPlatform\Core\Bridge\Symfony\Validator\Validator::class => ApiPlatform\Symfony\Validator\Validator::class,
211211

212212
// Cache
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the API Platform project.
5+
*
6+
* (c) Kévin Dunglas <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace ApiPlatform\Core\Tests\Test;
15+
16+
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
17+
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client;
18+
use ApiPlatform\Core\Bridge\Symfony\Routing\Router;
19+
20+
class BookTestDeprecatedClient extends ApiTestCase
21+
{
22+
private Client $client;
23+
private Router $router;
24+
25+
protected function setup(): void
26+
{
27+
$this->client = static::createClient();
28+
}
29+
30+
public function testWorks(): void
31+
{
32+
$this->assertTrue(true);
33+
}
34+
}

0 commit comments

Comments
 (0)