<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Module; use Composer\Autoload\ClassLoader; class ModuleClassLoader { private static $loader = null; private static $namespacesAdded = array(); private static function loaderInit() { if (null == self::$loader) { self::$loader = app(ClassLoader::class); self::$loader->register(true); } } public static function addClass($UfDw1, $Jtt5u) { self::loaderInit(); self::$loader->addClassMap(array($UfDw1 => $Jtt5u)); } public static function addNamespace($Tp4s2, $nAf_0) { goto X2ShQ; u9_oW: $dzLqS[$Tp4s2] = $nAf_0; goto VQRNX; X2ShQ: self::loaderInit(); goto ReCd2; ReCd2: if (!ends_with($Tp4s2, '\\')) { $Tp4s2 = $Tp4s2 . '\\'; } goto u9_oW; VQRNX: self::$loader->addPsr4($Tp4s2, array($nAf_0)); goto vp8Qf; vp8Qf: } public static function addNamespaceIfMissing($Tp4s2, $nAf_0) { if (!self::hasNamespace($Tp4s2)) { self::addNamespace($Tp4s2, $nAf_0); } } public static function hasNamespace($Tp4s2) { if (!ends_with($Tp4s2, '\\')) { $Tp4s2 = $Tp4s2 . '\\'; } return isset($dzLqS[$Tp4s2]); } }