updated file reader to curl-easy
This commit is contained in:
committed by
Steffen Schröder
parent
d1948f4142
commit
15f0164287
15
application/core/Libs/Symfony/autoload.php
Normal file
15
application/core/Libs/Symfony/autoload.php
Normal 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;
|
||||
}
|
||||
});
|
14
application/core/Libs/curl-easy/autoload.php
Normal file
14
application/core/Libs/curl-easy/autoload.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
if (!defined('cURL_PATH')) {
|
||||
define('cURL_PATH', __DIR__);
|
||||
}
|
||||
|
||||
spl_autoload_register(
|
||||
function ($className) {
|
||||
$classPath = str_replace('\\', DIRECTORY_SEPARATOR, $className);
|
||||
$filePath = cURL_PATH . DIRECTORY_SEPARATOR . $classPath . '.php';
|
||||
if (file_exists($filePath)) {
|
||||
require_once $filePath;
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user