Version 1
[yaffs-website] / web / core / lib / Drupal / Component / Utility / ArgumentsResolverInterface.php
diff --git a/web/core/lib/Drupal/Component/Utility/ArgumentsResolverInterface.php b/web/core/lib/Drupal/Component/Utility/ArgumentsResolverInterface.php
new file mode 100644 (file)
index 0000000..54b774b
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\Component\Utility;
+
+/**
+ * Resolves the arguments to pass to a callable.
+ */
+interface ArgumentsResolverInterface {
+
+  /**
+   * Gets arguments suitable for passing to the given callable.
+   *
+   * @return array
+   *   An array of arguments to pass to the callable.
+   *
+   * @throws \RuntimeException
+   *   When a value for an argument given cannot be resolved.
+   */
+  public function getArguments(callable $callable);
+
+}