Created
January 27, 2010 22:24
-
-
Save simensen/288213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Import the data source context configuration. | |
$context->import('dataSource.context.php'); | |
// Setup the string configuration object. | |
$context->set('stringConfiguration', array( | |
// We use a Composite Configuration! | |
'className' => 'hc_configuration_CompositeConfiguration', | |
'constructorArgs' => array( | |
'configurations' => array( | |
$context->set(array( | |
// Use a Properties Configuration for the default values. | |
'className' => 'hc_configuration_PropertiesConfiguration', | |
'constructorArgs' => array( | |
'location' => 'strings.properties', | |
), | |
)), | |
$context->set('samplePdoConfiguration', array( | |
// Use a PDO Configuration for the overridden values. | |
'className' => 'hc_configuration_PdoConfiguration', | |
'constructorArgs' => array( | |
'dataSource' => $context->ref('dataSource'), | |
), | |
)), | |
), | |
), | |
)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment