Skip to content

Instantly share code, notes, and snippets.

@weierophinney
Created April 19, 2016 22:09
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 weierophinney/990d360b89c73ebdaf119003b5e04bb1 to your computer and use it in GitHub Desktop.
Save weierophinney/990d360b89c73ebdaf119003b5e04bb1 to your computer and use it in GitHub Desktop.
Using the zend-db ConfigProvider within a zend-expressive application
<?php
// config/autoload/db.global.php
$provider = new Zend\Db\ConfigProvider();
return $provider();
<?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