Skip to content

Instantly share code, notes, and snippets.

@nicolas-grekas
Created April 6, 2019 13:08
Show Gist options
  • Save nicolas-grekas/141db1e7695987e89705d32285e3151f to your computer and use it in GitHub Desktop.
Save nicolas-grekas/141db1e7695987e89705d32285e3151f 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