Skip to content

Commit

Permalink
fix: error handle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Mar 29, 2019
1 parent d4b73b5 commit ba30f06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ composer.lock
*.swo
*.zip
*.phar
*.cache
.DS_Store
.interactive_history
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## v2.4.1 - v2.4.3

> publish at: 2019.03.29
- fix: no add error handle before use
- fix some bugs
- update some

## v2.4.0

> publish at: 2018.07.03
Expand Down
8 changes: 4 additions & 4 deletions src/Base/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ protected function init()
'endMemory' => 0,
];

if (!$this->errorHandler) {
$this->errorHandler = new ErrorHandler();
}

$this->commandName = $this->input->getCommand();

$this->registerErrorHandle();
Expand All @@ -145,10 +149,6 @@ public static function getInternalOptions(): array

protected function prepareRun()
{
if (!$this->errorHandler) {
$this->errorHandler = new ErrorHandler();
}

// date_default_timezone_set($this->config('timeZone', 'UTC'));
//new AutoCompletion(array_merge($this->getCommandNames(), $this->getControllerNames()));
}
Expand Down

0 comments on commit ba30f06

Please sign in to comment.