Skip to content

Commit

Permalink
fix: load localizations in register() instead boot()
Browse files Browse the repository at this point in the history
  • Loading branch information
ast21 committed Mar 24, 2023
1 parent 2aa2bf7 commit faf56f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Loaders/AutoLoaderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ trait AutoLoaderTrait
public function runLoaderBoot(): void
{
$this->loadMigrationsFromShip();
$this->loadLocalsFromShip();
$this->loadViewsFromShip();
$this->loadHelpersFromShip();
$this->loadCommandsFromShip();

// Iterate over all the containers folders and autoload most of the components
foreach ($this->getAllContainerPaths() as $containerPath) {
$this->loadMigrationsFromContainers($containerPath);
$this->loadLocalsFromContainers($containerPath);
$this->loadViewsFromContainers($containerPath);
$this->loadHelpersFromContainers($containerPath);
$this->loadCommandsFromContainers($containerPath);
Expand All @@ -37,10 +35,12 @@ public function runLoaderRegister(): void
{
$this->loadConfigsFromShip();
$this->loadShipServiceProviderFromShip();
$this->loadLocalsFromShip();

foreach ($this->getAllContainerPaths() as $containerPath) {
$this->loadConfigsFromContainers($containerPath);
$this->loadMainServiceProvidersFromContainers($containerPath);
$this->loadLocalsFromContainers($containerPath);
}
}
}

0 comments on commit faf56f2

Please sign in to comment.