Files
expose/app/Commands/ServeCommand.php
Marcel Pociot f54c13aec4 wip
2020-04-14 21:36:51 +02:00

23 lines
456 B
PHP

<?php
namespace App\Commands;
use App\Server\Factory;
use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;
class ServeCommand extends Command
{
protected $signature = 'serve {host=127.0.0.1}';
protected $description = 'Start the shaft server';
public function handle()
{
(new Factory())
->setHost($this->argument('host'))
->createServer()
->run();
}
}