Skip Menu |

This queue is for tickets about the Config-Any CPAN distribution.

Report information
The Basics
Id: 40830
Status: resolved
Priority: 0/
Queue: Config-Any

People
Owner: Nobody in particular
Requestors: dom [...] math.uni-bonn.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Subclassing in the Config::Any Namespace
Date: Tue, 11 Nov 2008 12:59:02 +0100
To: bug-Config-Any [...] rt.cpan.org
From: Mario Domgoergen <dom [...] math.uni-bonn.de>
Hello, i'm subclassing Config::Any to merge configuration variables from differant files. I named my Module Config::Any::Merge, but as Config::Any::finder uses __PACKAGE__ as search_path for Module::Pluggable::Object::new my module is found as possible plugin for Config::any. Maybe it would be saner to use a special Config::Any::Plugin namespace for the plugins. Neither choosing a differant namespace like ConfigAny::Merge nor overloading finder (that's what i'm doing in the moment) seems to be the right choice for me. Best regards, Mario Domgoergen -- Mario Domgoergen - Systemadministration Mathematische Institut der Universitaet Bonn Beringstrasse 4, 53115 Bonn / Zimmer 3 Tel.: +49-228-737773 / dom@math.uni-bonn.de
Resolved in version 0.15.
Subject: Re: [rt.cpan.org #40830] Subclassing in the Config::Any Namespace
Date: Sat, 15 Nov 2008 19:21:40 +0000
To: Mario Domgoergen via RT <bug-Config-Any [...] rt.cpan.org>
From: Matt S Trout <mst [...] shadowcat.co.uk>
On Tue, Nov 11, 2008 at 06:59:59AM -0500, Mario Domgoergen via RT wrote: Show quoted text
> Tue Nov 11 06:59:54 2008: Request 40830 was acted upon. > Transaction: Ticket created by dom@math.uni-bonn.de > Queue: Config-Any > Subject: Subclassing in the Config::Any Namespace > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: dom@math.uni-bonn.de > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=40830 > > > > Hello, > > i'm subclassing Config::Any to merge configuration variables > from differant files. I named my Module Config::Any::Merge,
Don't do that! Don't do that! The last thing we need is yet another random Config::Any extension. Please look at Config::Merge Config::Multi Config::JFDI and see if any of those do what you need. If not, please join the effort around the list at http://lists.scsys.co.uk/ to define a Config::Loader module that provides a front end to Config::Any and other configuration sources that everybody can share, rather than keep releasing even more almost-the-same modules to CPAN :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/