Skip to content

Commit 733e17a

Browse files
authored
fix(deprecation): alias before autoload if needed (#4696)
* fix(deprecation): stubs to load deprecated classes * stubs
1 parent e21a01a commit 733e17a

File tree

535 files changed

+6442
-2
lines changed

Some content is hidden

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

535 files changed

+6442
-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/Action/EntrypointAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ public function __invoke(): Entrypoint
3535
return new Entrypoint($this->resourceNameCollectionFactory->create());
3636
}
3737
}
38+
39+
class_alias(EntrypointAction::class, \ApiPlatform\Core\Action\EntrypointAction::class);

src/Action/ExceptionAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,5 @@ private function getOperationExceptionToStatus(Request $request): array
116116
);
117117
}
118118
}
119+
120+
class_alias(ExceptionAction::class, \ApiPlatform\Core\Action\ExceptionAction::class);

src/Action/NotFoundAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ public function __invoke()
2525
throw new NotFoundHttpException();
2626
}
2727
}
28+
29+
class_alias(NotFoundAction::class, \ApiPlatform\Core\Action\NotFoundAction::class);

src/Action/PlaceholderAction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ public function __invoke($data)
3030
return $data;
3131
}
3232
}
33+
34+
class_alias(PlaceholderAction::class, \ApiPlatform\Core\Action\PlaceholderAction::class);

src/Api/Entrypoint.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ public function getResourceNameCollection(): ResourceNameCollection
3434
return $this->resourceNameCollection;
3535
}
3636
}
37+
38+
class_alias(Entrypoint::class, \ApiPlatform\Core\Api\Entrypoint::class);

src/Api/FilterLocatorTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ private function getFilter(string $filterId): ?FilterInterface
6262
return null;
6363
}
6464
}
65+
66+
class_alias(FilterLocatorTrait::class, \ApiPlatform\Core\Api\FilterLocatorTrait::class);

src/Api/FormatMatcher.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ public function getFormat(string $mimeType): ?string
6262
return null;
6363
}
6464
}
65+
66+
class_alias(FormatMatcher::class, \ApiPlatform\Core\Api\FormatMatcher::class);

src/Api/QueryParameterValidator/QueryParameterValidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ public function validateFilters(string $resourceClass, array $resourceFilters, a
6464
}
6565
}
6666
}
67+
68+
class_alias(QueryParameterValidator::class, \ApiPlatform\Core\Filter\QueryParameterValidator::class);

src/Api/QueryParameterValidator/Validator/ArrayItems.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,5 @@ private static function getSeparator(string $collectionFormat): string
8484
}
8585
}
8686
}
87+
88+
class_alias(ArrayItems::class, \ApiPlatform\Core\Filter\Validator\ArrayItems::class);

0 commit comments

Comments
 (0)