Skip to content

Commit

Permalink
Prevents booting of providers (#44758)
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon authored Oct 27, 2022
1 parent ec3958d commit aaac47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function handle($input, $output = null)
$this->commandStartedAt = Carbon::now();

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

Expand Down Expand Up @@ -327,7 +327,7 @@ public function registerCommand($command)
*/
public function call($command, array $parameters = [], $outputBuffer = null)
{
if ($command === 'env:decrypt') {
if (in_array($command, ['env:encrypt', 'env:decrypt'], true)) {
$this->bootstrapWithoutBootingProviders();
}

Expand Down

0 comments on commit aaac47f

Please sign in to comment.