lms/vendor/pestphp/pest-plugin-laravel/src/PestServiceProvider.php
2025-12-15 12:26:23 +01:00

34 lines
778 B
PHP

<?php
declare(strict_types=1);
namespace Pest\Laravel;
use Illuminate\Support\ServiceProvider;
use Laravel\Dusk\Console\DuskCommand;
use Pest\Laravel\Commands\PestDatasetCommand;
use Pest\Laravel\Commands\PestDuskCommand;
use Pest\Laravel\Commands\PestTestCommand;
final class PestServiceProvider extends ServiceProvider
{
/**
* Register Artisan Commands.
*/
public function register(): void
{
if ($this->app->runningInConsole()) {
$this->commands([
PestTestCommand::class,
PestDatasetCommand::class,
]);
if (class_exists(DuskCommand::class)) {
$this->commands([
PestDuskCommand::class,
]);
}
}
}
}