Carew\Command\Serve::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('serve')->setDefinition(array(new InputArgument('address', InputArgument::OPTIONAL, 'Address:port', 'localhost:8000'), new InputOption('web-dir', 'd', InputOption::VALUE_REQUIRED, 'Document root', getcwd() . '/web')))->setDescription('Runs PHP built-in web server')->setHelp(<<<EOF
The <info>%command.name%</info> runs PHP built-in web server:

  <info>%command.full_name%</info>

To change default bind address and port use the <info>address</info> argument:

  <info>%command.full_name% 127.0.0.1:8080</info>

To change default web-dir directory use the <info>--web-dir</info> option:

  <info>%command.full_name% --web-dir=htdocs/</info>

See also: http://www.php.net/manual/en/features.commandline.webserver.php
EOF
);
    }