Skip to content

Commit bee8a94

Browse files
authored
Set ContainerCommandLoader for lazy loading console commands (#1230)
1 parent 6a38877 commit bee8a94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/Kernel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ protected function getArtisan()
209209
{
210210
if (is_null($this->artisan)) {
211211
return $this->artisan = (new Artisan($this->app, $this->app->make('events'), $this->app->version()))
212-
->resolveCommands($this->getCommands());
212+
->resolveCommands($this->getCommands())
213+
->setContainerCommandLoader();
213214
}
214215

215216
return $this->artisan;

0 commit comments

Comments
 (0)