Skip to content

Commit 1018706

Browse files
committed
fix: extract autoloadHelpers()
1 parent e32b962 commit 1018706

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

system/Boot.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public static function bootWeb(Paths $paths): int
6060
$factoriesCache = static::loadConfigCache();
6161
}
6262

63+
static::autoloadHelpers();
64+
6365
$app = static::initializeCodeIgniter();
6466
static::runCodeIgniter($app);
6567

@@ -93,6 +95,7 @@ public static function bootSpark(Paths $paths): int
9395
static::loadAutoloader();
9496
static::setExceptionHandler();
9597
static::initializeKint();
98+
static::autoloadHelpers();
9699

97100
static::initializeCodeIgniter();
98101
$console = static::initializeConsole();
@@ -115,6 +118,7 @@ public static function bootTest(Paths $paths): void
115118
static::loadAutoloader();
116119
static::setExceptionHandler();
117120
static::initializeKint();
121+
static::autoloadHelpers();
118122
}
119123

120124
/**
@@ -224,6 +228,10 @@ protected static function loadAutoloader(): void
224228

225229
// Initialize and register the loader with the SPL autoloader stack.
226230
Services::autoloader()->initialize(new Autoload(), new Modules())->register();
231+
}
232+
233+
protected static function autoloadHelpers(): void
234+
{
227235
Services::autoloader()->loadHelpers();
228236
}
229237

0 commit comments

Comments
 (0)