Re: SplClassLoader
| From: | rod | Date: | Mon, 27 Jun 2011 10:59:41 +0000 |
| Subject: | Re: SplClassLoader | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53598@lists.php.net to get a copy of this message | ||
Yes sorry this is what I mean, a PSR0 compliant autoloader class built
in as standard.
$loader = new SplClassLoader();
$loader->register( '/path/to/my/library' );
etc...
On 27 June 2011 11:57, Dennis Haarbrink <dhaarbrink@gmail.com> wrote:
> I suppose what he means is a classloader *implementation*.
> Something along the lines of:
> function($class) {
> return str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
> }
>
> 2011/6/27 Hannes Magnusson <hannes.magnusson@gmail.com>
>>
>> On Mon, Jun 27, 2011 at 12:19, rod <rod@pu-gh.com> wrote:
>> > Quick question: is there any planned inclusion in PHP for an
>> > SplClassLoader?
>> >
>>
>> What would that class do that the spl_autoload*() functions don't?
>>
>> -Hannes
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>