src/Resolvers/ContainerResolver.php
public function resolve($value, $default = 'value')
    {
        $callable = $this->getCallable($value);

        if (is_array($callable)) {
            if (is_callable($callable[0])) {
                return call_user_func_array($callable[0], $callable[1]);
            } else {
                return $callable[0];
            }
        }

        return $this->fallback->resolve($value, $default);
    }
public function resolve($value, $default = 'value')
    {
        $callable = $this->getCallable($value);

        if (is_array($callable)) {
            if (is_callable($callable[0])) {
                return call_user_func_array($callable[0], $callable[1]);
            } else {
                return $callable[0];
            }
        }

        return $this->fallback->resolve($value, $default);
    }
public function resolve ( $ value , $ default = 'value' ) { $ callable = $ this -> getCallable ( $ value ) ; if ( is_array ( $ callable ) ) { if ( is_callable ( $ callable [ 0 ] ) ) { return call_user_func_array ( $ callable [ 0 ] , $ callable [ 1 ] ) ; } else { return $ callable [ 0 ] ; } } return $ this -> fallback -> resolve ( $ value , $ default ) ; }
Attempts to resolve through the container or fallback on CallableResolver

@param mixed $value
Attempts to resolve through the container or fallback on CallableResolver