Created
April 19, 2016 22:09
-
-
Save weierophinney/990d360b89c73ebdaf119003b5e04bb1 to your computer and use it in GitHub Desktop.
Using the zend-db ConfigProvider within a zend-expressive application
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 | |
// config/autoload/db.global.php | |
$provider = new Zend\Db\ConfigProvider(); | |
return $provider(); |
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 | |
// config/autoload/db.local.php | |
return [ | |
'db' => [ | |
'adapters' => [ | |
'YourAdapterName' => [ | |
// Normal adapter configuration | |
], | |
], | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment