framework/components/eventhandler/traits/CallbackTrait.php
public function prepareCallback($callback)
    {
        $result       = $callback;
        if (is_string($callback) && ($callbackInfo = $this->parseHandlerStr($callback))
            && class_exists($callbackInfo['class']) && method_exists(($controller
                = new $callbackInfo['class']), $callbackInfo['method'])) {
            $result = [$controller, $callbackInfo['method']];
        } elseif (!is_callable($callback)) {
            throw new \pwf\exception\HttpNotFoundException();
        }
        return $result;
    }
public function prepareCallback($callback)
    {
        $result       = $callback;
        if (is_string($callback) && ($callbackInfo = $this->parseHandlerStr($callback))
            && class_exists($callbackInfo['class']) && method_exists(($controller
                = new $callbackInfo['class']), $callbackInfo['method'])) {
            $result = [$controller, $callbackInfo['method']];
        } elseif (!is_callable($callback)) {
            throw new \pwf\exception\HttpNotFoundException();
        }
        return $result;
    }
public function prepareCallback ( $ callback ) { $ result = $ callback ; if ( is_string ( $ callback ) && ( $ callbackInfo = $ this -> parseHandlerStr ( $ callback ) ) && class_exists ( $ callbackInfo [ 'class' ] ) && method_exists ( ( $ controller = new $ callbackInfo [ 'class' ] ) , $ callbackInfo [ 'method' ] ) ) { $ result = [ $ controller , $ callbackInfo [ 'method' ] ] ; } elseif ( ! is_callable ( $ callback ) ) { throw new \ pwf \ exception \ HttpNotFoundException ( ) ; } return $ result ; }
Prepare handler for invokation

@param \Closure|string|array $callback
@return \Closure
@throws \pwf\exception\HttpNotFoundException
Prepare handler for invokation