Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



For Symfony 4

Add to file config/bundles.php

return [
    // ...
    EighteenPlus\AgeGateSymfony\AgeGateSymfony::class => ['all' => true],

For Symfony 3

Add to file app/AppKernel.php

$bundles = [
    // ...
    new EighteenPlus\AgeGateSymfony\AgeGateSymfony(),


Symfony 4

Add folowing options to .env

Symfony 3

Add folowing options to app/config/config.yml as 'parameters' childs

agegate_title - Text in the <title> tag agegate_logo - Site logo before 'Age Gate' text and inside Qr-Code agegate_site_name - Text before 'Age Gate' agegate_custom_text - Text before 'reference to Digital Economy Act' or after agegate_custom_text_location - Position of 'agegate_custom_text'. Values: 'top', 'bottom' agegate_background_color - background color. Default: rgb(247, 241, 241) agegate_text_color - text color. Default: #212529 agegate_remove_reference - Remove 'reference to Digital Economy Act'. Values: true, false agegate_remove_visiting - Remove 'you are visiting from UK' text. Values: true, false agegate_test_mode - start AgeGate immediatelly. Values: true, false agegate_test_anyip - start AgeGate at any ip. Value: true, false agegate_test_ip - set ip for testing. Example: '' agegate_start_from - start AgeGate after this time. Default: 2019-07-15T12:00 agegate_desktop_session_lifetime - reset AgeGate confirmation after this time in hours on Desktop. Default: 24 agegate_mobile_session_lifetime - reset AgeGate confirmation after this time in hours on Mobile devices. Default: 24

You can’t perform that action at this time.