src/Hades/Route/Manager.php
private static function str2closure($controllerAction)
    {
        list($controller, $action) = explode('@', $controllerAction);
        return function($request) use ($controller, $action) {
            $c = new $controller;
            return call_user_func([$c, $action], $request);
        };
    }
private static function str2closure($controllerAction)
    {
        list($controller, $action) = explode('@', $controllerAction);
        return function($request) use ($controller, $action) {
            $c = new $controller;
            return call_user_func([$c, $action], $request);
        };
    }
private static function str2closure ( $ controllerAction ) { list ( $ controller , $ action ) = explode ( '@' , $ controllerAction ) ; return function ( $ request ) use ( $ controller , $ action ) { $ c = new $ controller ; return call_user_func ( [ $ c , $ action ] , $ request ) ; } ; }
convert string to closure
convert string to closure