private function prepareAcls($allowedAcls)
    {
        $result = '';
        $aclsArray = [];
        $acls = '';

        if ($allowedAcls != null) {
            foreach ($allowedAcls as $key => $value) {
                $aclsArray[] = $value['value'];
            }
            $acls = implode(',', $aclsArray);
        }

        $this->configWriter->save(
            Config::XML_FASTLY_WAF_ALLOW_BY_ACL,
            $acls,
            'default',
            '0'
        );

        if ($acls != '') {
            $allowedAclsPieces = explode(",", $acls);
            foreach ($allowedAclsPieces as $acl) {
                $result .= ' req.http.Fastly-Client-Ip ~ ' . $acl . ' ||';
            }
        }

        return $result;
    }
private function prepareAcls($allowedAcls)
    {
        $result = '';
        $aclsArray = [];
        $acls = '';

        if ($allowedAcls != null) {
            foreach ($allowedAcls as $key => $value) {
                $aclsArray[] = $value['value'];
            }
            $acls = implode(',', $aclsArray);
        }

        $this->configWriter->save(
            Config::XML_FASTLY_WAF_ALLOW_BY_ACL,
            $acls,
            'default',
            '0'
        );

        if ($acls != '') {
            $allowedAclsPieces = explode(",", $acls);
            foreach ($allowedAclsPieces as $acl) {
                $result .= ' req.http.Fastly-Client-Ip ~ ' . $acl . ' ||';
            }
        }

        return $result;
    }
private function prepareAcls ( $ allowedAcls ) { $ result = '' ; $ aclsArray = [ ] ; $ acls = '' ; if ( $ allowedAcls != null ) { foreach ( $ allowedAcls as $ key => $ value ) { $ aclsArray [ ] = $ value [ 'value' ] ; } $ acls = implode ( ',' , $ aclsArray ) ; } $ this -> configWriter -> save ( Config :: XML_FASTLY_WAF_ALLOW_BY_ACL , $ acls , 'default' , '0' ) ; if ( $ acls != '' ) { $ allowedAclsPieces = explode ( "," , $ acls ) ; foreach ( $ allowedAclsPieces as $ acl ) { $ result .= ' req.http.Fastly-Client-Ip ~ ' . $ acl . ' ||' ; } } return $ result ; }
Prepares ACL VCL snippets

@param $allowedAcls
@return string
Prepares ACL VCL snippets