diff --git a/system/CLI/BaseCommand.php b/system/CLI/BaseCommand.php index 4fcc39d45591..024daf18ddb9 100644 --- a/system/CLI/BaseCommand.php +++ b/system/CLI/BaseCommand.php @@ -1,4 +1,5 @@ commands = service('commands'); diff --git a/system/CLI/Commands.php b/system/CLI/Commands.php index ff9db290a552..cb6d8fd4ed1a 100644 --- a/system/CLI/Commands.php +++ b/system/CLI/Commands.php @@ -1,4 +1,43 @@ -logger = $logger === null ? service('logger') : $logger; + $this->logger = $logger ?? service('logger'); } /** diff --git a/system/CLI/Exceptions/CLIException.php b/system/CLI/Exceptions/CLIException.php index 6e2477faa7b6..474064ef888a 100644 --- a/system/CLI/Exceptions/CLIException.php +++ b/system/CLI/Exceptions/CLIException.php @@ -1,8 +1,53 @@ -