Skip to content

Commit

Permalink
ccxt.php require Exchange, errors from php/base
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Oct 27, 2019
1 parent f9bd589 commit d0efa4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
namespace ccxt;

define('PATH_TO_CCXT', __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR);
define('PATH_TO_CCXT_BASE', PATH_TO_CCXT . 'base' . DIRECTORY_SEPARATOR);

spl_autoload_register(function ($class) {
// used to include static dependencies
Expand All @@ -50,7 +51,8 @@
require_once $file;
});

require_once PATH_TO_CCXT . 'errors.php';
require_once PATH_TO_CCXT_BASE . 'errors.php';
require_once PATH_TO_CCXT_BASE . 'Exchange.php';

spl_autoload_register (function ($class_name) {
$class_name = str_replace ("ccxt\\", "", $class_name);
Expand Down

0 comments on commit d0efa4b

Please sign in to comment.