Re: alternative to allfiles.php, comments?

From: Date: Mon, 27 Aug 2007 07:28:14 +0000
Subject: Re: alternative to allfiles.php, comments?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47849@lists.php.net to get a copy of this message
Gregory Beaver wrote:
Hi all, Another possible solution to the "make it easy for beginners" problem would be to offer this syntax: <?php require '/full/path/to/PEAR2/PackageName.php'; PEAR2::PackageName::beginnerSetup(); ?> the beginnerSetup() static method would do what allfiles.php does in the current proposal. If we have auto-generated allfiles.php, it would be possible for beginnerSetup() to simply be: static function beginnerSetup() {
    require dirname(__FILE__) . '/PackageName/allfiles.php';
} This should be a more intuitive solution for beginners. Comments?
I'm not sure we gain much against a regular include 'allfiles.php'. As gopal pointed out the problem is dependencies so maybe the allfiles.php should contain only the package files and not the dependencies. ps: the name makes it something developers will not want to see in their code, which is good I suppose :) -- Arnaud.

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