From 0169093da5d417465dda6b82c2d19f1e494a6f49 Mon Sep 17 00:00:00 2001 From: Ujjwal Ojha Date: Sat, 28 Jun 2014 20:11:38 +0545 Subject: [PATCH] Updating docs for using the default Zend\Db Storage adapter --- docs/storage-adapters.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/storage-adapters.md b/docs/storage-adapters.md index caf5d3c..2ecf943 100644 --- a/docs/storage-adapters.md +++ b/docs/storage-adapters.md @@ -5,7 +5,18 @@ Storage Adapters Use this adapter if you want to use `Zend\Db` for settings persistence. #### How -Import the MySQL schema located in `vendor/hrevert/ht-settings-module/data/schema.sql` if you use MySQL. +1. Import the MySQL schema located in `vendor/hrevert/ht-settings-module/data/schema.sql` if you use MySQL. +2. Install [ZfcBase](https://github.com/ZF-Commons/ZfcBase) by adding `"zf-commons/zfc-base": "0.1.*"` to require section of composer.json +3. Add the following config: +```php +return [ + 'ht_settings' => [ + // This is optional. + // You can specify this is config/autoload/ht-settings-module.global.php + 'parameter_entity_class' => 'HtSettingsModule\Entity\IdAwareParameter', + ] +]; +``` ## XML Adapter Use this adapter if you want to store settings in XML format. @@ -47,4 +58,4 @@ return [ ] ] ]; -``` \ No newline at end of file +```