Update Include.php

This commit is contained in:
Belle Aerni 2023-11-10 06:26:36 -08:00
parent ac938678d7
commit 4143a75944

View file

@ -2,10 +2,4 @@
$basedir = dirname(__DIR__, 2);
$srcdir = $basedir . DIRECTORY_SEPARATOR . 'src';
include_once $srcdir . DIRECTORY_SEPARATOR . 'Constants.php';
$classMapPath = $srcdir . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR . 'classMap.php';
$loader = new AntCMS\AntLoader(['path' => $classMapPath]);
$loader->addNamespace('AntCMS\\', $srcdir . DIRECTORY_SEPARATOR . 'AntCMS');
$loader->checkClassMap();
$loader->register();
include_once $srcdir . DIRECTORY_SEPARATOR . 'Bootstrap.php';