Skip to content

Commit

Permalink
Ensure providers aren't registered until run()
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 16, 2024
1 parent df12de2 commit 2fd04e2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Support/AutoloadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,8 @@ protected function handleProviders()
? DomainCache::get('domain-providers')
: $this->discoverProviders();

foreach (static::$registeredProviders as $provider) {
$this->app->forgetInstance($provider);
}

static::$registeredProviders = [];

foreach ($providers as $provider) {
static::$registeredProviders[$provider] = $provider;
$this->app->register($provider);
}

return $this;
Expand All @@ -154,8 +147,6 @@ protected function handleCommands()
? DomainCache::get('domain-commands')
: $this->discoverCommands();

static::$registeredCommands = [];

foreach ($commands as $command) {
static::$registeredCommands[$command] = $command;
}
Expand Down

0 comments on commit 2fd04e2

Please sign in to comment.