protected function callChannelCallback($callback, $parameters)
    {
        if (is_string($callback)) {
            list($className, $method) = Str::parseCallback($callback, 'join');

            $callback = array(
                $instance = $this->container->make($className), $method
            );

            $reflector = new ReflectionMethod($instance, $method);
        } else {
            $reflector = new ReflectionFunction($callback);
        }

        return call_user_func_array(
            $callback, $this->resolveCallDependencies($parameters, $reflector)
        );
    }
protected function callChannelCallback($callback, $parameters)
    {
        if (is_string($callback)) {
            list($className, $method) = Str::parseCallback($callback, 'join');

            $callback = array(
                $instance = $this->container->make($className), $method
            );

            $reflector = new ReflectionMethod($instance, $method);
        } else {
            $reflector = new ReflectionFunction($callback);
        }

        return call_user_func_array(
            $callback, $this->resolveCallDependencies($parameters, $reflector)
        );
    }
protected function callChannelCallback ( $ callback , $ parameters ) { if ( is_string ( $ callback ) ) { list ( $ className , $ method ) = Str :: parseCallback ( $ callback , 'join' ) ; $ callback = array ( $ instance = $ this -> container -> make ( $ className ) , $ method ) ; $ reflector = new ReflectionMethod ( $ instance , $ method ) ; } else { $ reflector = new ReflectionFunction ( $ callback ) ; } return call_user_func_array ( $ callback , $ this -> resolveCallDependencies ( $ parameters , $ reflector ) ) ; }
Call a channel callback with the dependencies.

@param  mixed  $callback
@param  array  $parameters
@return mixed
Call a channel callback with the dependencies .