[Catalyst-commits] r7926 - in trunk/Catalyst-Plugin-ConfigLoader: . lib/Catalyst/Plugin

bricas at dev.catalyst.perl.org bricas at dev.catalyst.perl.org
Fri Jun 13 19:03:47 BST 2008


Author: bricas
Date: 2008-06-13 19:03:46 +0100 (Fri, 13 Jun 2008)
New Revision: 7926

Modified:
   trunk/Catalyst-Plugin-ConfigLoader/Changes
   trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader.pm
Log:
fix up pod to explain in more detail how to pass options to each driver class (Sergio Salvi)

Modified: trunk/Catalyst-Plugin-ConfigLoader/Changes
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/Changes	2008-06-13 14:24:13 UTC (rev 7925)
+++ trunk/Catalyst-Plugin-ConfigLoader/Changes	2008-06-13 18:03:46 UTC (rev 7926)
@@ -1,5 +1,9 @@
 Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
 
+0.21  XXXX
+    - fix up pod to explain in more detail how to pass options to each
+      driver class (Sergio Salvi)
+
 0.20  Fri May 02 2008
     - sort configs by filename for loading (RT #31498)
     - updated pod with new example

Modified: trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader.pm
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader.pm	2008-06-13 14:24:13 UTC (rev 7925)
+++ trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader.pm	2008-06-13 18:03:46 UTC (rev 7926)
@@ -8,7 +8,7 @@
 use Data::Visitor::Callback;
 use Catalyst::Utils ();
 
-our $VERSION = '0.20';
+our $VERSION = '0.21';
 
 =head1 NAME
 
@@ -41,7 +41,16 @@
 file of various types. Currently it supports YAML, JSON, XML,
 INI and Perl formats. Special configuration for a particular driver format can
 be stored in C<MyApp-E<gt>config-E<gt>{ 'Plugin::ConfigLoader' }-E<gt>{ driver }>.
+For example, to pass arguments to L<Config::General>, use the following:
 
+    __PACKAGE__->config( 'Plugin::ConfigLoader' => {
+        driver => {
+            'General' => { -LowerCaseNames => 1 }
+        }
+    } );
+
+See L<Config::Any>'s C<driver_args> parameter for more information.
+
 To support the distinction between development and production environments,
 this module will also attemp to load a local config (e.g. myapp_local.yaml)
 which will override any duplicate settings.




More information about the Catalyst-commits mailing list