Skip to content

Commit

Permalink
rename method name
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjfernandes committed Jul 6, 2024
1 parent 8a352d3 commit c4c426d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/Providers/BaseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function boot(): void

$this->loadCommandsFrom($this->basePath()."/$this->commandsPath");

$this->bootRoutes();
$this->bootRoutesFrom($this->basePath()."/$this->routesPath");
}

protected function basePath(): string
Expand All @@ -42,10 +42,10 @@ protected function basePath(): string
return dirname($reflection->getFileName());
}

public function bootRoutes(): void
public function bootRoutesFrom(string $path): void
{
$files = blank($this->routeFiles)
? glob($this->basePath()."/$this->routesPath/*.php")
? glob("$path/*.php")
: $this->routeFiles;

foreach ($files as $file) {
Expand Down

0 comments on commit c4c426d

Please sign in to comment.