src/Rad/Middleware/Middleware.php
private function createCoreFunction(Closure $core): Closure {
        return function(ServerRequestInterface $request, ResponseInterface $response, Route $route) use($core) {
            return call_user_func_array($core, [&$request, &$response, &$route]);
        };
    }
private function createCoreFunction(Closure $core): Closure {
        return function(ServerRequestInterface $request, ResponseInterface $response, Route $route) use($core) {
            return call_user_func_array($core, [&$request, &$response, &$route]);
        };
    }
private function createCoreFunction ( Closure $ core ) : Closure { return function ( ServerRequestInterface $ request , ResponseInterface $ response , Route $ route ) use ( $ core ) { return call_user_func_array ( $ core , [ & $ request , & $ response , & $ route ] ) ; } ; }
Create the core function
@param  Closure $core the core function
@return Closure
Create the core function