private function resolve(SplFileInfo $file): Closure
    {
        return function(IServerRequest $request, IResponse $response, callable $next) use ($file)
        {
            return $this->container->call(import($file->getRealPath()),
            [
                'request' => $request,
                'response' => $response,
                'next' => $next,
                'config' => $this->config
            ]);
        };
    }
private function resolve(SplFileInfo $file): Closure
    {
        return function(IServerRequest $request, IResponse $response, callable $next) use ($file)
        {
            return $this->container->call(import($file->getRealPath()),
            [
                'request' => $request,
                'response' => $response,
                'next' => $next,
                'config' => $this->config
            ]);
        };
    }
private function resolve ( SplFileInfo $ file ) : Closure { return function ( IServerRequest $ request , IResponse $ response , callable $ next ) use ( $ file ) { return $ this -> container -> call ( import ( $ file -> getRealPath ( ) ) , [ 'request' => $ request , 'response' => $ response , 'next' => $ next , 'config' => $ this -> config ] ) ; } ; }
Used by Relay\Runner when it dispatches the middleware stack.

@param  SplFileInfo $file
@return Closure
Used by Relay \ Runner when it dispatches the middleware stack .