checkSltCookie example



    /** * Short circuit some URLs to early pass * * {@inheritdoc} * * @api */
    public function handle(Request $request$type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $this->checkSltCookie($request);

        $request->headers->set('Surrogate-Capability', 'shopware="ESI/1.0"');

        if (str_starts_with($request->getPathInfo(), '/backend/')) {
            return $this->pass($request$catch);
        }

        if (stripos($request->getPathInfo(), '/widgets/index/refreshStatistic') === 0) {
            return $this->handleCookies($request$this->pass($request$catch));
        }

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