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

From: Date: Fri, 31 Aug 2012 19:11:38 +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 11  Groups: php.general 
Request: Send a blank email to php-general+get-318934@lists.php.net to get a copy of this message
On Tue, Aug 28, 2012 at 1:43 PM, Matijn Woudt <tijnema@gmail.com> wrote: > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > I did some searching on that one since it sounds interesting. It's laying dormant in bugzilla: https://bugs.php.net/bug.php?id=60128 (the RFC : https://wiki.php.net/rfc/splclassloader) Thanks for the advice so far. I will certainly implement Autoloading. Why didn't i think of that :p Guess my PHP knowledge is a bit rusty since i did make autoloaders before.

« previous php.general (#318934) next »