Skip to content
Snippets Groups Projects

Implemented ValueResolverInterface instead of ArgumentValueResolverInterface.

1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -10,6 +10,13 @@ use Symfony\Component\HttpFoundation\Request;
@@ -10,6 +10,13 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
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.
 
if (!interface_exists(ValueResolverInterface::class)) {
 
class_alias('\Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface', ValueResolverInterface::class);
 
}
 
/**
/**
* Deserializes POST, PATCH and DELETE request documents.
* Deserializes POST, PATCH and DELETE request documents.
*
*
Loading