добавляю все изменения проекта на текущий момент
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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 [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user