src/Chiron/Http/Middleware/EncryptCookiesMiddleware.php
private function withDecryptedCookies(ServerRequestInterface $request): ServerRequestInterface
    {
        $cookies = $request->getCookieParams();

        $decrypted = [];
        foreach ($cookies as $name => $value) {
            $decrypted[$name] = in_array($name, $this->bypassed) ? $value : $this->decrypt($value);
        }

        return $request->withCookieParams($decrypted);
    }
private function withDecryptedCookies(ServerRequestInterface $request): ServerRequestInterface
    {
        $cookies = $request->getCookieParams();

        $decrypted = [];
        foreach ($cookies as $name => $value) {
            $decrypted[$name] = in_array($name, $this->bypassed) ? $value : $this->decrypt($value);
        }

        return $request->withCookieParams($decrypted);
    }
private function withDecryptedCookies ( ServerRequestInterface $ request ) : ServerRequestInterface { $ cookies = $ request -> getCookieParams ( ) ; $ decrypted = [ ] ; foreach ( $ cookies as $ name => $ value ) { $ decrypted [ $ name ] = in_array ( $ name , $ this -> bypassed ) ? $ value : $ this -> decrypt ( $ value ) ; } return $ request -> withCookieParams ( $ decrypted ) ; }
Decrypt the non bypassed cookie values attached to the given request and return a new request with those values.

@param ServerRequestInterface $request

@return ServerRequestInterface
Decrypt the non bypassed cookie values attached to the given request and return a new request with those values .