class Illuminate / Container / BoundMethod
You are viewing an older version of the documentation. For the latest, please visit master documentation.

BoundMethod

Methods

public static

call ( $container , $callback , array $parameters , $defaultMethod ) : mixed

Call the given Closure / class@method and inject its dependencies.

Parameters

  • $container Container
  • $callback callable|string
  • $parameters array
  • $defaultMethod string|null
protected static

callClass ( $container , $target , array $parameters , $defaultMethod ) : mixed

Call a string reference to a class using Class@method syntax.

Parameters

  • $container Container
  • $target string
  • $parameters array
  • $defaultMethod string|null
protected static

callBoundMethod ( $container , $callback , $default ) : mixed

Call a method that has been bound to the container.

Parameters

  • $container Container
  • $callback callable
  • $default mixed
protected static

normalizeMethod ( $callback ) : string

Normalize the given callback into a Class@method string.

Parameters

  • $callback callable
protected static

getMethodDependencies ( $container , $callback , array $parameters ) : array

Get all dependencies for a given method.

Parameters

  • $container Container
  • $callback callable|string
  • $parameters array
protected static

getCallReflector ( $callback ) : ReflectionFunctionAbstract

Get the proper reflection instance for the given callback.

Parameters

  • $callback callable|string
protected static

addDependencyForCallParameter ( $container , $parameter , array $parameters , $dependencies ) : void

Get the dependency for the given call parameter.

Parameters

protected static

isCallableWithAtSign ( $callback ) : bool

Determine if the given string is in Class@method syntax.

Parameters

  • $callback mixed