File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff 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 ' )) {
You can’t perform that action at this time.
0 commit comments