src/Storageless/RequestHandler.php
public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $storageless = $request->getAttribute(SessionMiddleware::SESSION_ATTRIBUTE);

        $session = new Session($storageless);

        $request = $request->withAttribute(SessionInterface::class, $session);

        return $this->handler->handle($request);
    }
public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $storageless = $request->getAttribute(SessionMiddleware::SESSION_ATTRIBUTE);

        $session = new Session($storageless);

        $request = $request->withAttribute(SessionInterface::class, $session);

        return $this->handler->handle($request);
    }
public function handle ( ServerRequestInterface $ request ) : ResponseInterface { $ storageless = $ request -> getAttribute ( SessionMiddleware :: SESSION_ATTRIBUTE ) ; $ session = new Session ( $ storageless ) ; $ request = $ request -> withAttribute ( SessionInterface :: class , $ session ) ; return $ this -> handler -> handle ( $ request ) ; }
Wrap the storageless session from the request in our session interface.

@param ServerRequestInterface $request The request to handle

@return ResponseInterface
Wrap the storageless session from the request in our session interface .