src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php
private function configureDaemonDefinition(): void
    {
        $this->addOption('run-once', null, InputOption::VALUE_NONE, 'Run the command just once.');
        $this->addOption('run-max', null, InputOption::VALUE_OPTIONAL, 'Run the command x time.');
        $this->addOption('memory-max', null, InputOption::VALUE_OPTIONAL, 'Gracefully stop running command when given memory volume, in bytes, is reached.', 0);
        $this->addOption('shutdown-on-exception', null, InputOption::VALUE_NONE, 'Ask for shutdown if an exception is thrown.');
        $this->addOption('show-exceptions', null, InputOption::VALUE_NONE, 'Display exception on command output.');
    }
private function configureDaemonDefinition(): void
    {
        $this->addOption('run-once', null, InputOption::VALUE_NONE, 'Run the command just once.');
        $this->addOption('run-max', null, InputOption::VALUE_OPTIONAL, 'Run the command x time.');
        $this->addOption('memory-max', null, InputOption::VALUE_OPTIONAL, 'Gracefully stop running command when given memory volume, in bytes, is reached.', 0);
        $this->addOption('shutdown-on-exception', null, InputOption::VALUE_NONE, 'Ask for shutdown if an exception is thrown.');
        $this->addOption('show-exceptions', null, InputOption::VALUE_NONE, 'Display exception on command output.');
    }
private function configureDaemonDefinition ( ) : void { $ this -> addOption ( 'run-once' , null , InputOption :: VALUE_NONE , 'Run the command just once.' ) ; $ this -> addOption ( 'run-max' , null , InputOption :: VALUE_OPTIONAL , 'Run the command x time.' ) ; $ this -> addOption ( 'memory-max' , null , InputOption :: VALUE_OPTIONAL , 'Gracefully stop running command when given memory volume, in bytes, is reached.' , 0 ) ; $ this -> addOption ( 'shutdown-on-exception' , null , InputOption :: VALUE_NONE , 'Ask for shutdown if an exception is thrown.' ) ; $ this -> addOption ( 'show-exceptions' , null , InputOption :: VALUE_NONE , 'Display exception on command output.' ) ; }
Add daemon options to the command definition.
Add daemon options to the command definition .