<?php
class Runserver_Task {
public function run($arguments)
{
$port = !isset($arguments[0]) ? 8000: $arguments[0];
echo 'Running PHP development server on port '.$port.'...';
passthru('php -S localhost:'.$port.' -t '.getcwd().'/public');
}
}
?>