protected function decodeCookies(ServerRequestInterface $request)
    {
        $cookies = $request->getCookieParams();
        foreach ($this->cookieNames as $name) {
            if (isset($cookies[$name])) {
                $cookies[$name] = $this->_decrypt($cookies[$name], $this->cipherType, $this->key);
            }
        }

        return $request->withCookieParams($cookies);
    }
protected function decodeCookies(ServerRequestInterface $request)
    {
        $cookies = $request->getCookieParams();
        foreach ($this->cookieNames as $name) {
            if (isset($cookies[$name])) {
                $cookies[$name] = $this->_decrypt($cookies[$name], $this->cipherType, $this->key);
            }
        }

        return $request->withCookieParams($cookies);
    }
protected function decodeCookies ( ServerRequestInterface $ request ) { $ cookies = $ request -> getCookieParams ( ) ; foreach ( $ this -> cookieNames as $ name ) { if ( isset ( $ cookies [ $ name ] ) ) { $ cookies [ $ name ] = $ this -> _decrypt ( $ cookies [ $ name ] , $ this -> cipherType , $ this -> key ) ; } } return $ request -> withCookieParams ( $ cookies ) ; }
Decode cookies from the request.

@param \Psr\Http\Message\ServerRequestInterface $request The request to decode cookies from.
@return \Psr\Http\Message\ServerRequestInterface Updated request with decoded cookies.
Decode cookies from the request .