autoloader no longer required, provided by composer
parent
76026b747c
commit
00fa268408
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
ini_set('display_startup_errors', 'On');
|
||||
ini_set('display_errors', 'On');
|
||||
date_default_timezone_set('Europe/Zurich');
|
||||
|
||||
// register an autoloader to automatically load classes
|
||||
// the namespace for the class must begin with BSR and
|
||||
// otherwise respect the PSR-4 standard
|
||||
spl_autoload_register(function ($class) {
|
||||
$class = substr($class, strlen('BSR'));
|
||||
$path = sprintf('%s/../%s.php', __DIR__, str_replace('\\', '/', $class));
|
||||
|
||||
if (file_exists($path)) {
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require $path;
|
||||
}
|
||||
});
|
||||
Loading…
Reference in New Issue