sulu / SuluCommunityBundle

Community features like Login, Registration, Password forget/reset for your sulu application.
MIT License
30 stars 39 forks source link

Fix maintenance mode with env variables #116

Closed alexander-schranz closed 5 years ago

alexander-schranz commented 5 years ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes
Related issues/PRs -
License MIT

What's in this PR?

Fix maintenance mode with env variables.

Why?

Env Variables need to be resolved when being used when building the container.

Example Usage

# config.yaml
sulu_community:
    webspaces:
        test:
            maintenance:
                enabled: "%env(bool:COMMUNITY_MAINTENANCE)%"
COMMUNITY_MAINTENANCE=false