Files
expose/app/Commands/ServeCommand.php
Marcel Pociot 87d254db63 wip
2020-04-14 21:43:06 +02:00

24 lines
530 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=0.0.0.0} {hostname=localhost}';
protected $description = 'Start the shaft server';
public function handle()
{
(new Factory())
->setHost($this->argument('host'))
->setHostname($this->argument('hostname'))
->createServer()
->run();
}
}