protected function checkEnvironment(OutputInterface $output)
    {
        if ($this->getContainer()->get('kernel')->getEnvironment() !== 'prod') {
            $output->writeln('<bg=yellow>                                                                            </bg=yellow>');
            $output->writeln('<bg=yellow;options=bold;fg=black>  Warning:                                                                  </bg=yellow;options=bold;fg=black>');
            $output->writeln('<bg=yellow;fg=black>  You should run the command in production environment ("--env=prod")       </bg=yellow;fg=black>');
            $output->writeln('<bg=yellow>                                                                            </bg=yellow>');
        }
    }
protected function checkEnvironment(OutputInterface $output)
    {
        if ($this->getContainer()->get('kernel')->getEnvironment() !== 'prod') {
            $output->writeln('<bg=yellow>                                                                            </bg=yellow>');
            $output->writeln('<bg=yellow;options=bold;fg=black>  Warning:                                                                  </bg=yellow;options=bold;fg=black>');
            $output->writeln('<bg=yellow;fg=black>  You should run the command in production environment ("--env=prod")       </bg=yellow;fg=black>');
            $output->writeln('<bg=yellow>                                                                            </bg=yellow>');
        }
    }
protected function checkEnvironment ( OutputInterface $ output ) { if ( $ this -> getContainer ( ) -> get ( 'kernel' ) -> getEnvironment ( ) !== 'prod' ) { $ output -> writeln ( '<bg=yellow>                                                                            </bg=yellow>' ) ; $ output -> writeln ( '<bg=yellow;options=bold;fg=black>  Warning:                                                                  </bg=yellow;options=bold;fg=black>' ) ; $ output -> writeln ( '<bg=yellow;fg=black>  You should run the command in production environment ("--env=prod")       </bg=yellow;fg=black>' ) ; $ output -> writeln ( '<bg=yellow>                                                                            </bg=yellow>' ) ; } }
Print a warning if we do not run the command in production environment

@param OutputInterface $output
Print a warning if we do not run the command in production environment