ArgumentsResolverInterface.php 448 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Component\Utility;
  3. /**
  4. * Resolves the arguments to pass to a callable.
  5. */
  6. interface ArgumentsResolverInterface {
  7. /**
  8. * Gets arguments suitable for passing to the given callable.
  9. *
  10. * @return array
  11. * An array of arguments to pass to the callable.
  12. *
  13. * @throws \RuntimeException
  14. * When a value for an argument given cannot be resolved.
  15. */
  16. public function getArguments(callable $callable);
  17. }