core23/gdpr-bundle

This bundle provides a GDPR conform cookie information inside the sonata-project.

Installs: 25

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.2.0 2018-09-26 16:49 UTC

README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Build Status Scrutinizer Code Quality Code Climate Coverage Status

This bundle provides a GDPR conform cookie information inside the sonata-project.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require core23/gdpr-bundle

Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Core23\GDPRBundle\Core23GDPRBundle::class => ['all' => true],
];

Configure the Bundle

Add the block to the sonata_block configuration if necessary:

# config/packages/sonata_block.yaml

sonata_block:
    blocks:
        core23_gdpr.block.information: ~

Usage

{# template.twig #}

{{ sonata_block_render({ 'type': 'core23_gdpr.block.information' }, {
    'url': 'https://example.com/gdpr',
    'text': 'Example text' // optional
}) }}

License

This bundle is under the MIT license.