RawParameterValueResolver.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Drupal\Core\Controller\ArgumentResolver;
  3. use Symfony\Component\HttpFoundation\Request;
  4. use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
  5. use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
  6. @trigger_error(__NAMESPACE__ . '\RawParameterValueResolver is deprecated in Drupal 8.8.1 and will be removed before Drupal 9.0.0. This class exists to prevent problems with updating core using Drush 8. There is no replacement.', E_USER_DEPRECATED);
  7. /**
  8. * Exists to prevent problems with updating core using Drush 8.
  9. *
  10. * @deprecated in Drupal 8.8.1 and will be removed before Drupal 9.0.0. There is
  11. * no replacement.
  12. */
  13. final class RawParameterValueResolver implements ArgumentValueResolverInterface {
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public function supports(Request $request, ArgumentMetadata $argument) {
  18. return FALSE;
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function resolve(Request $request, ArgumentMetadata $argument) {
  24. // This will never be called as self::supports() returns FALSE.
  25. }
  26. }