Re: What's the best way to make a dynamic plugin architecture?

From: Date: Tue, 28 Aug 2012 11:43:48 +0000
Subject: Re: What's the best way to make a dynamic plugin architecture?
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-318902@lists.php.net to get a copy of this message
On Tue, Aug 28, 2012 at 1:16 AM, Larry Garfield <larry@garfieldtech.com> wrote: > On 8/27/12 6:11 PM, Matijn Woudt wrote: > >>> You should never be calling require() yourself. Just follow the PSR-0 >>> naming standard and use an autoloader, then you don't have to even think >>> about it. There are many existing autoloaders you can use, including >>> Composer's, Symfony2's, and probably Zend has one as well. >>> >> >> I believe there's one in PHP by default now called SPLClassLoader or >> something like that.. >> >> - Matijn > > > There was a proposal for one, but it was never added. You still need a > user-space class loader for PSR-0, but they're readily available. > > > --Larry Garfield > Ah thanks for the info. I heard about it way back and assumed it was implemented by now ;) - Matijn

« previous php.general (#318902) next »