handleUnresolvedArgument example

elseif (isset($this->scalars[$parameter_name])) {
      return $this->scalars[$parameter_name];
    }

    // If the callable provides a default value, use it.     if ($parameter->isDefaultValueAvailable()) {
      return $parameter->getDefaultValue();
    }

    // Can't resolve it: call a method that throws an exception or can be     // overridden to do something else.     return $this->handleUnresolvedArgument($parameter);
  }

  /** * Gets a reflector for the access check callable. * * The access checker may be either a procedural function (in which case the * callable is the function name) or a method (in which case the callable is * an array of the object and method name). * * @param callable $callable * The callable (either a function or a method). * * @return \ReflectionFunctionAbstract * The ReflectionMethod or ReflectionFunction to introspect the callable. */
Home | Imprint | This part of the site doesn't use cookies.