Skip to content

Commit 636ab33

Browse files
committed
formatting
1 parent a6d6cf4 commit 636ab33

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/Module.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function boot()
197197
$this->registerTranslation();
198198
}
199199

200-
if ($this->isLoadFilesOnBoot()) {
200+
if (config('module.register.files') == 'boot') {
201201
$this->registerFiles();
202202
}
203203

@@ -273,7 +273,7 @@ public function register()
273273

274274
$this->registerProviders();
275275

276-
if ($this->isLoadFilesOnBoot() === false) {
276+
if (config('module.register.files') == 'register') {
277277
$this->registerFiles();
278278
}
279279

@@ -430,18 +430,6 @@ public function __get($key)
430430
return $this->get($key);
431431
}
432432

433-
/**
434-
* Check if can load files of module on boot method.
435-
*
436-
* @return bool
437-
*/
438-
protected function isLoadFilesOnBoot()
439-
{
440-
return config('module.register.files', 'register') === 'boot' &&
441-
// force register method if option == boot && app is AsgardCms
442-
!class_exists('\Modules\Core\Foundation\AsgardCms');
443-
}
444-
445433
private function flushCache(): void
446434
{
447435
if (config('module.cache.enabled')) {

0 commit comments

Comments
 (0)