Skip to content

Instantly share code, notes, and snippets.

@mpdude
Forked from nicolas-grekas/secrets.yaml
Created April 6, 2019 13:09
Show Gist options
  • Save mpdude/c565ab30314726c95967d02f4e7f759a to your computer and use it in GitHub Desktop.
Save mpdude/c565ab30314726c95967d02f4e7f759a to your computer and use it in GitHub Desktop.
secrets.yaml
parameters:
env(SECRETS_FILE): .secrets.php
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
bind:
$someSecret: '%env(key:KEY3:require:SECRETS_FILE)%'
$someSecret: '%env(secrets:KEY3)%'
$secrets = @include .secrets.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment