Skip to content
Snippets Groups Projects
Commit 389727f7 authored by Vishal Khode's avatar Vishal Khode Committed by Matt Glaman
Browse files

Issue #3362189 by vishalkhode, tsquared212, mglaman: Implement...

Issue #3362189 by vishalkhode, tsquared212, mglaman: Implement ValueResolverInterface instead of ArgumentValueResolverInterface
parent f3fd9e98
No related branches found
No related tags found
1 merge request!15Implemented ValueResolverInterface instead of ArgumentValueResolverInterface.
Pipeline #187333 passed with warnings
......@@ -7,15 +7,22 @@ namespace Drupal\jsonapi_resources\Unstable\Controller\ArgumentResolver;
use Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel;
use Drupal\jsonapi_resources\Unstable\DocumentExtractor;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
use Symfony\Component\HttpKernel\Controller\ValueResolverInterface;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
// The ArgumentValueResolverInterface is deprecated since Symfony 6.2 and
// removed from Symfony 7. Hence, below workaround to run PHPUnit tests against
// Drupal 9, 10 and 11.
if (!interface_exists(ValueResolverInterface::class)) {
class_alias('\Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface', ValueResolverInterface::class);
}
/**
* Deserializes POST, PATCH and DELETE request documents.
*
* @internal
*/
final class DocumentResolver implements ArgumentValueResolverInterface {
final class DocumentResolver implements ValueResolverInterface {
/**
* The document extractor.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment