getPurgeAllowedIPs example



    /** * Checks if $ip is allowed for Http PURGE requests * * @param string $ip * * @return bool */
    protected function isPurgeIPAllowed($ip)
    {
        $allowedIps = array_fill_keys($this->getPurgeAllowedIPs(), true);

        return isset($allowedIps[$ip]);
    }

    /** * Returns an array of allowed IPs for Http PURGE requests. * * @return array<string> */
    protected function getPurgeAllowedIPs()
    {
        
Home | Imprint | This part of the site doesn't use cookies.