Re: [PEPr] +1 for Configuration::Config_Lite
| From: | Patrick E. | Date: | Tue, 25 Jan 2011 17:52:00 +0000 |
| Subject: | Re: [PEPr] +1 for Configuration::Config_Lite | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54022@lists.php.net to get a copy of this message | ||
hi,
thanks for the vote and hints :)
@Michael Gauthier
Should i also provide examples in the docblock?
@Christian Weiske
I could implement Comments and Multilinestring in a seperate Class like
Config_Lite_Parser().
And Config_Lite with a factory method like $config =
Config_Lite::factory(Config_Lite::Parser); (when additional
Dependencies can be optional) or simpler: $config =
Config_Lite_Parser();.
In Config_Lite_parser i would use a simple "Linereader", that i could
also propose as File::Linereader (if interested, otherwise i just use
some helper methods, because "package.filesystem.file" doesn't solve
this - i could also provide improvements), an object that holds Lines
with arrayaccess, since many Configfiles are small, the Scanner could
iterate each Line.
The proposal is finished, where do we go from here, is it accepted and
do i get svn access to commit Config_Lite?
--
greetings,
Patrick Engel