Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrange Library and Bundle settings #30

Open
renedelima opened this issue Mar 21, 2022 · 1 comment
Open

Arrange Library and Bundle settings #30

renedelima opened this issue Mar 21, 2022 · 1 comment
Milestone

Comments

@renedelima
Copy link
Contributor

Create separate sections for DeviceDetector and DeviceDetectorBundle itself in the configuration file.

@renanbr renanbr added this to the 1.0.0 milestone Mar 21, 2022
@renanbr
Copy link
Member

renanbr commented Nov 14, 2023

# config/packages/acsiomatic_device_detector.yaml

acsiomatic_device_detector:

    device_detector:

        # If true, DeviceDetector will trigger parser() when necessary
        auto_parse: true

        # Version truncation behavior, it may assume: major, minor, patch, build, or none
        # By default minor versions will be returned (e.g. X.Y)
        version_truncation: 'minor'

        cache:

            # If null, it will disable caching
            pool: 'cache.app'

        bot:

            # If true getBot() will only return true if a bot was detected (speeds up detection a bit)
            discard_information: false

            # If true, bot detection will completely be skipped (bots will be detected as regular devices then)
            skip_detection: false

    symfony:

        twig:

            # If null, it will not assign Twig variable
            variable_name: 'device'

        routing:

            # If null, it will not tag DeviceDetector as routing condition service
            condition_service_alias: 'device'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants