Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
|
||||
$prefix = 'League\Csv\\';
|
||||
if (0 !== strpos($class, $prefix)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$file = __DIR__
|
||||
.DIRECTORY_SEPARATOR
|
||||
.'src'
|
||||
.DIRECTORY_SEPARATOR
|
||||
.str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen($prefix)))
|
||||
.'.php';
|
||||
if (!is_readable($file)) {
|
||||
return;
|
||||
}
|
||||
|
||||
require $file;
|
||||
});
|
||||
Reference in New Issue
Block a user