Based on Harborn-digital Cookie Consent Bundle and adapted to meet Symfony 6.4 requirements. As well as PHP Unit 9 testing
In a Symfony application run this command to install and integrate Cookie Consent bundle in your application:
composer require zigr/connectholland_cookie-consent-bundle-fork
Step 2: Go futher on Original Bundle Installation Page
There should be the following files:
./config/packages/ch_cookie_consent.yaml As per configuration after Step 2 above.
./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"
If you choose to log cookie consent to db when configuring Step 2, then
./bin/console doctrine:schema:update --complete --dump-sql
and perform migration for log table creation.