src/Console/StartPhpInbuiltServer.php
public function execute(InputInterface $input, OutputInterface $output)
    {
        chdir('public');

        /*
         * check for user supplied hostname option
         */
        if ($input->hasOption('hostname') && $input->getOption('hostname') != null) {
            $this->hostname = $input->getOption('hostname');
        }

        /*
         * check for user supplied port option
         */
        if ($input->hasOption('port') && $input->getOption('port') != null) {
            $this->port = $input->getOption('port');
        }

        /*
         * check for user supplied a path option
         */
        if ($input->hasOption('path') && $input->getOption('path') != null) {
            $this->phpexec = $input->getOption('path');
        }

        $output->writeln('<info>Legato development server started</info>');
        $output->writeln("<info>Open your browser and navigate to: </info> <http://{$this->hostname}:{$this->port}>");
        $output->writeln('<info>CTRL C to quit </info>');
        passthru($this->startPHP());
    }
public function execute(InputInterface $input, OutputInterface $output)
    {
        chdir('public');

        /*
         * check for user supplied hostname option
         */
        if ($input->hasOption('hostname') && $input->getOption('hostname') != null) {
            $this->hostname = $input->getOption('hostname');
        }

        /*
         * check for user supplied port option
         */
        if ($input->hasOption('port') && $input->getOption('port') != null) {
            $this->port = $input->getOption('port');
        }

        /*
         * check for user supplied a path option
         */
        if ($input->hasOption('path') && $input->getOption('path') != null) {
            $this->phpexec = $input->getOption('path');
        }

        $output->writeln('<info>Legato development server started</info>');
        $output->writeln("<info>Open your browser and navigate to: </info> <http://{$this->hostname}:{$this->port}>");
        $output->writeln('<info>CTRL C to quit </info>');
        passthru($this->startPHP());
    }
public function execute ( InputInterface $ input , OutputInterface $ output ) { chdir ( 'public' ) ; /*
         * check for user supplied hostname option
         */ if ( $ input -> hasOption ( 'hostname' ) && $ input -> getOption ( 'hostname' ) != null ) { $ this -> hostname = $ input -> getOption ( 'hostname' ) ; } /*
         * check for user supplied port option
         */ if ( $ input -> hasOption ( 'port' ) && $ input -> getOption ( 'port' ) != null ) { $ this -> port = $ input -> getOption ( 'port' ) ; } /*
         * check for user supplied a path option
         */ if ( $ input -> hasOption ( 'path' ) && $ input -> getOption ( 'path' ) != null ) { $ this -> phpexec = $ input -> getOption ( 'path' ) ; } $ output -> writeln ( '<info>Legato development server started</info>' ) ; $ output -> writeln ( "<info>Open your browser and navigate to: </info> <http://{$this->hostname}:{$this->port}>" ) ; $ output -> writeln ( '<info>CTRL C to quit </info>' ) ; passthru ( $ this -> startPHP ( ) ) ; }
You command logic.

@param InputInterface  $input
@param OutputInterface $output

@return void
You command logic .