Skip to content

Commit ba30f06

Browse files
committed
fix: error handle bug
1 parent d4b73b5 commit ba30f06

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ composer.lock
1414
*.swo
1515
*.zip
1616
*.phar
17+
*.cache
1718
.DS_Store
1819
.interactive_history

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## v2.4.1 - v2.4.3
4+
5+
> publish at: 2019.03.29
6+
7+
- fix: no add error handle before use
8+
- fix some bugs
9+
- update some
10+
311
## v2.4.0
412

513
> publish at: 2018.07.03

src/Base/AbstractApplication.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ protected function init()
126126
'endMemory' => 0,
127127
];
128128

129+
if (!$this->errorHandler) {
130+
$this->errorHandler = new ErrorHandler();
131+
}
132+
129133
$this->commandName = $this->input->getCommand();
130134

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

146150
protected function prepareRun()
147151
{
148-
if (!$this->errorHandler) {
149-
$this->errorHandler = new ErrorHandler();
150-
}
151-
152152
// date_default_timezone_set($this->config('timeZone', 'UTC'));
153153
//new AutoCompletion(array_merge($this->getCommandNames(), $this->getControllerNames()));
154154
}

0 commit comments

Comments
 (0)