public function mainAction()
    {
        try {
            $host = $this->getHost();
            $port = $this->getPort($host);

            $this->run($host, $port);
        } catch (\Exception $e) {
            $this->block([$e->getMessage()], 'error');
            return;
        }
    }
public function mainAction()
    {
        try {
            $host = $this->getHost();
            $port = $this->getPort($host);

            $this->run($host, $port);
        } catch (\Exception $e) {
            $this->block([$e->getMessage()], 'error');
            return;
        }
    }
public function mainAction ( ) { try { $ host = $ this -> getHost ( ) ; $ port = $ this -> getPort ( $ host ) ; $ this -> run ( $ host , $ port ) ; } catch ( \ Exception $ e ) { $ this -> block ( [ $ e -> getMessage ( ) ] , 'error' ) ; return ; } }
Runs a local web server

@option --host : Define the host or ip to use. Default : 127.0.0.1.
@option --port : Define the port to use. Default : 8000.
Runs a local web server