Skip to content

Commit

Permalink
feat: add method createFromConfig() in LocalModuleLoader.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTheHood committed Nov 26, 2023
1 parent 5eef821 commit cea901f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Classes/Loader/LocalModuleLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace RobinTheHood\ModifiedModuleLoaderClient\Loader;

use RobinTheHood\ModifiedModuleLoaderClient\App;
use RobinTheHood\ModifiedModuleLoaderClient\Config;
use RobinTheHood\ModifiedModuleLoaderClient\Module;
use RobinTheHood\ModifiedModuleLoaderClient\ModuleFactory;
use RobinTheHood\ModifiedModuleLoaderClient\ModuleFilter;
Expand All @@ -37,6 +38,11 @@ public static function create(int $mode): LocalModuleLoader
return $localModuleLoader;
}

public static function createFromConfig(): LocalModuleLoader
{
return self::create(Config::getDependenyMode());
}

public function __construct(ModuleFilter $moduleFilter)
{
$this->moduleFilter = $moduleFilter;
Expand Down

0 comments on commit cea901f

Please sign in to comment.