Skip to content

Commit

Permalink
[8.x] Make commands lazy (#1092)
Browse files Browse the repository at this point in the history
* Make commands lazy

* Make commands lazy
  • Loading branch information
timacdonald authored Mar 19, 2024
1 parent 50e5938 commit 4901980
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Console/ChromeDriverCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
use Illuminate\Console\Command;
use Illuminate\Support\Str;
use Laravel\Dusk\OperatingSystem;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Process\Process;
use ZipArchive;

/**
* @copyright Originally created by Jonas Staudenmeir: https://github.com/staudenmeir/dusk-updater
*/
#[AsCommand(name: 'dusk:chrome-driver')]
class ChromeDriverCommand extends Command
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Console/ComponentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'dusk:component')]
class ComponentCommand extends GeneratorCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Console/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
use Illuminate\Support\Str;
use NunoMaduro\Collision\Adapters\Phpunit\Subscribers\EnsurePrinterIsRegisteredSubscriber;
use PHPUnit\Runner\Version;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Process\Exception\ProcessSignaledException;
use Symfony\Component\Process\Exception\RuntimeException;
use Symfony\Component\Process\Process;

#[AsCommand(name: 'dusk')]
class DuskCommand extends Command
{
use Concerns\InteractsWithTestingFrameworks;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace Laravel\Dusk\Console;

use Illuminate\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'dusk:install')]
class InstallCommand extends Command
{
use Concerns\InteractsWithTestingFrameworks;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'dusk:make')]
class MakeCommand extends GeneratorCommand
{
use Concerns\InteractsWithTestingFrameworks;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/PageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'dusk:page')]
class PageCommand extends GeneratorCommand
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Console/PurgeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
namespace Laravel\Dusk\Console;

use Illuminate\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Finder\Finder;

#[AsCommand(name: 'dusk:purge')]
class PurgeCommand extends Command
{
/**
Expand Down

0 comments on commit 4901980

Please sign in to comment.