src/mako/syringe/Container.php
public function call(callable $callable, array $parameters = [])
	{
		if(is_array($callable))
		{
			$reflection = new ReflectionMethod($callable[0], $callable[1]);
		}
		else
		{
			$reflection = new ReflectionFunction($callable);
		}

		return $callable(...$this->resolveParameters($reflection->getParameters(), $parameters));
	}
public function call(callable $callable, array $parameters = [])
	{
		if(is_array($callable))
		{
			$reflection = new ReflectionMethod($callable[0], $callable[1]);
		}
		else
		{
			$reflection = new ReflectionFunction($callable);
		}

		return $callable(...$this->resolveParameters($reflection->getParameters(), $parameters));
	}
public function call ( callable $ callable , array $ parameters = [ ] ) { if ( is_array ( $ callable ) ) { $ reflection = new ReflectionMethod ( $ callable [ 0 ] , $ callable [ 1 ] ) ; } else { $ reflection = new ReflectionFunction ( $ callable ) ; } return $ callable ( ... $ this -> resolveParameters ( $ reflection -> getParameters ( ) , $ parameters ) ) ; }
Execute a callable and inject its dependencies.

@param  callable $callable   Callable
@param  array    $parameters Parameters
@return mixed
Execute a callable and inject its dependencies .