Pagekit\Console\Commands\StartCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->line(sprintf('Pagekit %s Development Server started', $this->getApplication()->getVersion()));
        $this->line(sprintf('Listening on http://%s', $server = $this->option('server')));
        $this->line(sprintf('Document root is %s', getcwd()));
        $this->line('Press Ctrl-C to quit');
        exec("php -S {$server} index.php");
    }