Skip to content

Commit aaac47f

Browse files
authored
Prevents booting of providers (#44758)
1 parent ec3958d commit aaac47f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Foundation/Console/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function handle($input, $output = null)
146146
$this->commandStartedAt = Carbon::now();
147147

148148
try {
149-
if ($input->getFirstArgument() === 'env:decrypt') {
149+
if (in_array($input->getFirstArgument(), ['env:encrypt', 'env:decrypt'], true)) {
150150
$this->bootstrapWithoutBootingProviders();
151151
}
152152

@@ -327,7 +327,7 @@ public function registerCommand($command)
327327
*/
328328
public function call($command, array $parameters = [], $outputBuffer = null)
329329
{
330-
if ($command === 'env:decrypt') {
330+
if (in_array($command, ['env:encrypt', 'env:decrypt'], true)) {
331331
$this->bootstrapWithoutBootingProviders();
332332
}
333333

0 commit comments

Comments
 (0)