1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Added reference to the PSR-0 standard and the SplClassLoader RFC

This commit is contained in:
yohang 2011-10-25 18:38:55 +02:00
parent 65cad9868b
commit ccbf8553ac

View File

@ -1,5 +1,12 @@
<?php
/*
* Simple autoload that follow the PHP Standards Recommendation #0 (PSR-0)
* See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md for more informations.
*
* Code from the SplClassLoader RFC, see https://wiki.php.net/rfc/splclassloader#example_implementation
*
*/
spl_autoload_register(function($className) {
$className = ltrim($className, '\\');
$fileName = '';