src/WidgetFactory.php
protected function callStringCallback($callback, $args = [])
    {
        if (strpos($callback, '@')) {
            list($klass, $method) = explode('@', $callback);
        } else {
            $klass  = $callback;
            $method = 'render';
        }

        $klass = isset($this->instantiatedWidgets[$klass]) ? $this->instantiatedWidgets[$klass] : new $klass;

        return call_user_func_array([$klass, $method], $args);
    }
protected function callStringCallback($callback, $args = [])
    {
        if (strpos($callback, '@')) {
            list($klass, $method) = explode('@', $callback);
        } else {
            $klass  = $callback;
            $method = 'render';
        }

        $klass = isset($this->instantiatedWidgets[$klass]) ? $this->instantiatedWidgets[$klass] : new $klass;

        return call_user_func_array([$klass, $method], $args);
    }
protected function callStringCallback ( $ callback , $ args = [ ] ) { if ( strpos ( $ callback , '@' ) ) { list ( $ klass , $ method ) = explode ( '@' , $ callback ) ; } else { $ klass = $ callback ; $ method = 'render' ; } $ klass = isset ( $ this -> instantiatedWidgets [ $ klass ] ) ? $ this -> instantiatedWidgets [ $ klass ] : new $ klass ; return call_user_func_array ( [ $ klass , $ method ] , $ args ) ; }
Execute string callback

@param string $callback
@param array  $args

@return string
Execute string callback