From a6f61110a1d107f75ff7a6a73987f308d3da03aa Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sun, 10 Nov 2024 10:15:33 -0500 Subject: [PATCH] Fix duplicated methods from merge. --- src/LaravelDDDServiceProvider.php | 15 --------------- src/Support/Domain.php | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/src/LaravelDDDServiceProvider.php b/src/LaravelDDDServiceProvider.php index e478e41..c35ff7b 100644 --- a/src/LaravelDDDServiceProvider.php +++ b/src/LaravelDDDServiceProvider.php @@ -96,21 +96,6 @@ protected function registerMigrations() $this->loadMigrationsFrom(DomainMigration::paths()); } - protected function registerMigrations() - { - $this->app->singleton(Commands\Migration\DomainMigrateMakeCommand::class, function ($app) { - // Once we have the migration creator registered, we will create the command - // and inject the creator. The creator is responsible for the actual file - // creation of the migrations, and may be extended by these developers. - $creator = $app['migration.creator']; - $composer = $app['composer']; - - return new Commands\Migration\DomainMigrateMakeCommand($creator, $composer); - }); - - $this->loadMigrationsFrom(DomainMigration::paths()); - } - public function packageBooted() { $this->publishes([ diff --git a/src/Support/Domain.php b/src/Support/Domain.php index f578c5a..49483fc 100644 --- a/src/Support/Domain.php +++ b/src/Support/Domain.php @@ -102,21 +102,6 @@ public function pathInApplicationLayer(?string $path = null): string return Path::join(DomainResolver::applicationLayerPath(), $path); } - public function pathInApplicationLayer(?string $path = null): string - { - if (is_null($path)) { - return $this->path; - } - - $path = str($path) - ->replace(DomainResolver::applicationLayerRootNamespace(), '') - ->replace(['\\', '/'], DIRECTORY_SEPARATOR) - ->append('.php') - ->toString(); - - return Path::join(DomainResolver::applicationLayerPath(), $path); - } - public function relativePath(string $path = ''): string { return collect([$this->domain, $path])->filter()->implode(DIRECTORY_SEPARATOR);