zigr/connectholland_cookie-consent-bundle-fork

遵守 AVG/GDPR 的 Cookie 允许实现。基于 https://github.com/Harborn-digital/cookie-consent-bundle 并适应 symfony 6.4 要求。

安装: 12

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 0

分支: 15

类型:symfony-bundle

0.12.0 2024-06-06 23:56 UTC

This package is auto-updated.

Last update: 2024-09-07 02:48:37 UTC


README

基于 Harborn-digital Cookie 允许 Bundle 并适应 Symfony 6.4 要求。同时还包括 PHP Unit 9 测试

安装

步骤 1: 使用 composer 下载

在 Symfony 应用程序中运行此命令以安装和集成 Cookie 允许 Bundle 到您的应用程序中

composer require zigr/connectholland_cookie-consent-bundle-fork

步骤 2: 查看原始 Bundle 安装页面 Original Bundle Installation Page

步骤 3

应该有以下文件

./config/packages/ch_cookie_consent.yaml 按照步骤 2 中的配置。

./config/bundles.php

...
ConnectHolland\CookieConsentBundle\CHCookieConsentBundle::class => ['all' => true],

./config/packages/framework.yaml

framework:
    annotations: false

config/routes/ch_cookie_consent.yaml

ch_cookie_consent:
    resource: "@CHCookieConsentBundle/Resources/config/routing.yaml"

步骤 4(可选)

如果您选择在配置步骤 2 时将 cookie 允许记录到数据库,则

./bin/console doctrine:schema:update --complete --dump-sql

并执行迁移以创建日志表。