You are here

ArgumentsResolverInterface.php in Service Container 7.2

Same filename and directory in other branches
  1. 7 lib/Drupal/Component/Utility/ArgumentsResolverInterface.php

File

lib/Drupal/Component/Utility/ArgumentsResolverInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Component\Utility\ArgumentsResolverInterface.
 */
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);

}

Interfaces

Namesort descending Description
ArgumentsResolverInterface Resolves the arguments to pass to a callable.