public function resolve($callable)
    {
        if (is_string($callable) && strpos($callable, '::') !== false) {
            $callable = explode('::', $callable, 2);
        }

        $callable = $this->resolveFromContainer($callable);

        if (! is_callable($callable)) {
            throw NotCallableException::fromInvalidCallable($callable, true);
        }

        return $callable;
    }
public function resolve($callable)
    {
        if (is_string($callable) && strpos($callable, '::') !== false) {
            $callable = explode('::', $callable, 2);
        }

        $callable = $this->resolveFromContainer($callable);

        if (! is_callable($callable)) {
            throw NotCallableException::fromInvalidCallable($callable, true);
        }

        return $callable;
    }
public function resolve ( $ callable ) { if ( is_string ( $ callable ) && strpos ( $ callable , '::' ) !== false ) { $ callable = explode ( '::' , $ callable , 2 ) ; } $ callable = $ this -> resolveFromContainer ( $ callable ) ; if ( ! is_callable ( $ callable ) ) { throw NotCallableException :: fromInvalidCallable ( $ callable , true ) ; } return $ callable ; }
Resolve the given callable into a real PHP callable.

@param callable|string|array $callable

@return callable Real PHP callable.

@throws NotCallableException
Resolve the given callable into a real PHP callable .