src/Container.php
public function getMethod($class, $method, $extraMappings = []) {
		if (isset($this->aliases[$class])) {
			$class = $this->aliases[$class];
		}

		return [
			$this->getSingleton($class),
			$this->resolveArgs($class, $method, " when resolving method $class::$method", $extraMappings)
		];
	}
public function getMethod($class, $method, $extraMappings = []) {
		if (isset($this->aliases[$class])) {
			$class = $this->aliases[$class];
		}

		return [
			$this->getSingleton($class),
			$this->resolveArgs($class, $method, " when resolving method $class::$method", $extraMappings)
		];
	}
public function getMethod ( $ class , $ method , $ extraMappings = [ ] ) { if ( isset ( $ this -> aliases [ $ class ] ) ) { $ class = $ this -> aliases [ $ class ] ; } return [ $ this -> getSingleton ( $ class ) , $ this -> resolveArgs ( $ class , $ method , " when resolving method $class::$method" , $ extraMappings ) ] ; }
Resolve a method for method injection.

@param string $class
@param string $method
@param array $extraMappings Optional
@return array [$instance, (string)$method, (array)$args]
Resolve a method for method injection .