Files
magic-project/Modules/Taxi/App/Providers/TaxiScheduleProvider.php
T

31 lines
695 B
PHP

<?php
namespace Modules\Taxi\App\Providers;
use Illuminate\Support\ServiceProvider;
use Modules\Taxi\App\Console\SendOrdersToTaxiCommand;
class TaxiScheduleProvider extends ServiceProvider
{
/**
* Register the service provider.
*/
public function register(): void
{
// Регистрируем команду в системе
if ($this->app->runningInConsole()) {
$this->commands([
SendOrdersToTaxiCommand::class, // ✅ Теперь Laravel знает о команде
]);
}
}
/**
* Get the services provided by the provider.
*/
public function provides(): array
{
return [];
}
}