moved Libs out of core folder

This commit is contained in:
Steffen Schröder
2014-08-03 13:02:02 +02:00
parent 4d3dc92ad5
commit d517c2d561
180 changed files with 5 additions and 4 deletions

View File

@ -0,0 +1,15 @@
<?php
if (!defined('EVENT_DISPATCHER_PATH')) {
define('EVENT_DISPATCHER_PATH', __DIR__);
}
spl_autoload_register(
function ($className) {
$classPath = str_replace('\\', DIRECTORY_SEPARATOR, $className);
$filePath = EVENT_DISPATCHER_PATH . DIRECTORY_SEPARATOR . $classPath . '.php';
if (file_exists($filePath)) {
require_once $filePath;
}
});