Re: Re: Remove PEAR_Common::validPackageName()

From: Date: Thu, 13 Nov 2003 13:42:52 +0000
Subject: Re: Re: Remove PEAR_Common::validPackageName()
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23581@lists.php.net to get a copy of this message
# mj@php.net / 2003-11-13 14:18:25 +0100: > On Thu Nov 13, 2003 at 02:0436PM +0100, Roman Neuhauser wrote: > > How about making it possible to swap in different package name > > validator? > > I also thought of that. The easiest solution would be two add two new > command line options: --skip-name-test will completely skip the > validation, while --with-name-regex=<regex> will use the specified > regular expression instead of the defaultish one. This regex might even > be configured via "pear config-set". I was thinking of having the package name checked by a validator class. I might want to use the PEAR base/packager classes for in-house development, and my requirements for a valid package name would go beyond a simple regex check. If the PEAR_Common::validPackageName() method is going to be touched turn it into a Strategy object. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html

« previous php.pear.dev (#23581) next »