From d2d5130827466bb83a61931a497511b557f7ac7d Mon Sep 17 00:00:00 2001 From: Peter Elmered Date: Tue, 26 Mar 2024 04:35:11 +0100 Subject: [PATCH] Fix factory config key (should be singular) --- config/ddd.php | 2 +- src/Support/DomainAutoloader.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config/ddd.php b/config/ddd.php index ec67ad7..3e1867d 100644 --- a/config/ddd.php +++ b/config/ddd.php @@ -60,7 +60,7 @@ 'resource' => 'Resources', 'rule' => 'Rules', 'scope' => 'Scopes', - 'factories' => 'Database\Factories', + 'factory' => 'Database\Factories', ], /* diff --git a/src/Support/DomainAutoloader.php b/src/Support/DomainAutoloader.php index 5cbff17..1ceead3 100644 --- a/src/Support/DomainAutoloader.php +++ b/src/Support/DomainAutoloader.php @@ -23,7 +23,6 @@ public function __construct() public function autoload(): void { - //dd('Autoloading domains', $this->config); if(isset($this->config['autoload']['service_providers'])) { $this->registerDomainServiceProviders($this->config['autoload']['service_providers']); } @@ -155,7 +154,6 @@ protected function extractDomainAndModelFromModelNamespace(string $modelName): a return []; } - protected function remember($fileName, $callback) { // The cache is not available during booting, so we need to roll our own file based cache