Skip to content

Instantly share code, notes, and snippets.

@nemecec
Last active December 14, 2015 10:29
Show Gist options
  • Select an option

  • Save nemecec/5072681 to your computer and use it in GitHub Desktop.

Select an option

Save nemecec/5072681 to your computer and use it in GitHub Desktop.
LiveRebel environment-specific configuration management: sample application configuration with placeholders in PHP application
<?php
return array(
'components' => array(
'db' => array(
'connectionString' => '$LR{db.url}',
'emulatePrepare' => true,
'username' => '$LR{db.username}',
'password' => '$LR{db.password}',
'charset' => 'utf8',
),
),
'params' => array(
'fbAppId' => '$LR{fb.appId}',
'fbAppSecret' => '$LR{fb.appSecret}',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment