Skip to content

Instantly share code, notes, and snippets.

@lsmith77
Created December 8, 2016 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsmith77/d5dcb2feab440ff7906b1ac49f4d94d3 to your computer and use it in GitHub Desktop.
Save lsmith77/d5dcb2feab440ff7906b1ac49f4d94d3 to your computer and use it in GitHub Desktop.
<?php
$security_provider = getenv('SECURITY_PROVIDER');
if (empty($security_provider)) {
if ('dev' === getenv('APP_ENVIRONMENT')) {
$security_provider = 'chain_provider';
} else {
$security_provider = 'ldap';
}
}
$container->setParameter('security_provider', $security_provider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment