ResponseCacheConfiguration example

private readonly ResponseCacheConfiguration $cache;

    /** * @internal */
    public function __construct(
        private readonly ?Response $inner = null,
        private int $code = Response::HTTP_OK
    ) {
        $this->body = new ArrayFacade([]);
        $this->cache = new ResponseCacheConfiguration();
    }

    public function getCode(): int
    {
        return $this->code;
    }

    public function setCode(int $code): void
    {
        $this->code = $code;
    }

    
Home | Imprint | This part of the site doesn't use cookies.