Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set dispatcher #96

Merged
merged 2 commits into from
May 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Set dispatcher
  • Loading branch information
ainars-good committed May 23, 2023
commit 681fc2dc5f26c4da795c17ef0f645ffb9b45b72e
6 changes: 5 additions & 1 deletion src/Foundation/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ protected function getArtisan()
{
if (is_null($this->artisan))
{
return $this->artisan = (new Artisan($this->app, $this->events, $this->app->version()))
$this->artisan = (new Artisan($this->app, $this->events, $this->app->version()))
->resolveCommands($this->commands)
->setContainerCommandLoader();

if ($this->symfonyDispatcher instanceof EventDispatcher) {
$this->artisan->setDispatcher($this->symfonyDispatcher);
}
}

return $this->artisan;
Expand Down