Skip to content

Commit

Permalink
Merge pull request #103 from Lemon-Framework/commands
Browse files Browse the repository at this point in the history
[Kernel] fixes command loading
  • Loading branch information
tenmajkl authored Dec 20, 2022
2 parents e5f9b88 + db9c28f commit e2e8525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
10 changes: 0 additions & 10 deletions Untitled

This file was deleted.

5 changes: 4 additions & 1 deletion src/Lemon/Kernel/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function handleError(int $severity, string $error, string $file, int $lin
throw new \ErrorException($error, 0, $severity, $file, $line);
}

public function handleEnd()
public function handleEnd(): void
{
$error = error_get_last();
if (!$error) {
Expand All @@ -154,6 +154,9 @@ public function handleEnd()
*/
public function loadCommands(): void
{
if (!$this->runsInTerminal()) {
return;
}
$commands = new Commands($this->get('terminal'), $this->get('config'), $this);
$commands->load();
}
Expand Down

0 comments on commit e2e8525

Please sign in to comment.