改名
This commit is contained in:
@@ -44,7 +44,7 @@ class Application extends BaseApplication
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $config = [])
|
public function __construct(array $config = [])
|
||||||
{
|
{
|
||||||
// instance_load();
|
instance_load();
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -43,8 +43,7 @@ if (!function_exists('loadByDir')) {
|
|||||||
*/
|
*/
|
||||||
function classAutoload($namespace, $dirname)
|
function classAutoload($namespace, $dirname)
|
||||||
{
|
{
|
||||||
$path = rtrim(__DIR__ . '/' . $dirname, '/');
|
foreach (glob(rtrim($dirname, '/') . '/*') as $value) {
|
||||||
foreach (glob($path . '/*') as $value) {
|
|
||||||
$value = realpath($value);
|
$value = realpath($value);
|
||||||
if (is_dir($value)) {
|
if (is_dir($value)) {
|
||||||
classAutoload($namespace, $value);
|
classAutoload($namespace, $value);
|
||||||
|
|||||||
Reference in New Issue
Block a user