protected function addEnvironmentInfo($port, $command)
    {
        $translator = $this->getContainer()->get('translator');

        $info = [
            $translator->trans('environment.server.port')     => $port,
            $translator->trans('environment.console.command') => $command,
            $translator->trans('environment.symfony.version') => Kernel::VERSION,
            $translator->trans('environment.php.version')     => phpversion(),
        ];

        foreach ($info as $phrase => $value) {
            $this->buffer .= sprintf('<strong>%s: </strong>%s%s', $phrase, $value, PHP_EOL);
        }
    }
protected function addEnvironmentInfo($port, $command)
    {
        $translator = $this->getContainer()->get('translator');

        $info = [
            $translator->trans('environment.server.port')     => $port,
            $translator->trans('environment.console.command') => $command,
            $translator->trans('environment.symfony.version') => Kernel::VERSION,
            $translator->trans('environment.php.version')     => phpversion(),
        ];

        foreach ($info as $phrase => $value) {
            $this->buffer .= sprintf('<strong>%s: </strong>%s%s', $phrase, $value, PHP_EOL);
        }
    }
protected function addEnvironmentInfo ( $ port , $ command ) { $ translator = $ this -> getContainer ( ) -> get ( 'translator' ) ; $ info = [ $ translator -> trans ( 'environment.server.port' ) => $ port , $ translator -> trans ( 'environment.console.command' ) => $ command , $ translator -> trans ( 'environment.symfony.version' ) => Kernel :: VERSION , $ translator -> trans ( 'environment.php.version' ) => phpversion ( ) , ] ; foreach ( $ info as $ phrase => $ value ) { $ this -> buffer .= sprintf ( '<strong>%s: </strong>%s%s' , $ phrase , $ value , PHP_EOL ) ; } }
Adds additional environment information to buffer

@param int    $port
@param string $command
Adds additional environment information to buffer