private function getDaemonOptions(InputInterface $input, OutputInterface $output): DaemonOptionsInterface
    {
        $logger = new ConsoleLogger($output);

        $requestLimit = $input->getOption('request-limit') ?: DaemonOptions::NO_LIMIT;
        $memoryLimit  = $input->getOption('memory-limit')  ?: DaemonOptions::NO_LIMIT;
        $timeLimit    = $input->getOption('time-limit')    ?: DaemonOptions::NO_LIMIT;
        $autoShutdown = $input->getOption('auto-shutdown');

        return new DaemonOptions([
            DaemonOptions::LOGGER        => $logger,
            DaemonOptions::REQUEST_LIMIT => $requestLimit,
            DaemonOptions::MEMORY_LIMIT  => $memoryLimit,
            DaemonOptions::TIME_LIMIT    => $timeLimit,
            DaemonOptions::AUTO_SHUTDOWN => $autoShutdown,
        ]);
    }
private function getDaemonOptions(InputInterface $input, OutputInterface $output): DaemonOptionsInterface
    {
        $logger = new ConsoleLogger($output);

        $requestLimit = $input->getOption('request-limit') ?: DaemonOptions::NO_LIMIT;
        $memoryLimit  = $input->getOption('memory-limit')  ?: DaemonOptions::NO_LIMIT;
        $timeLimit    = $input->getOption('time-limit')    ?: DaemonOptions::NO_LIMIT;
        $autoShutdown = $input->getOption('auto-shutdown');

        return new DaemonOptions([
            DaemonOptions::LOGGER        => $logger,
            DaemonOptions::REQUEST_LIMIT => $requestLimit,
            DaemonOptions::MEMORY_LIMIT  => $memoryLimit,
            DaemonOptions::TIME_LIMIT    => $timeLimit,
            DaemonOptions::AUTO_SHUTDOWN => $autoShutdown,
        ]);
    }
private function getDaemonOptions ( InputInterface $ input , OutputInterface $ output ) : DaemonOptionsInterface { $ logger = new ConsoleLogger ( $ output ) ; $ requestLimit = $ input -> getOption ( 'request-limit' ) ? : DaemonOptions :: NO_LIMIT ; $ memoryLimit = $ input -> getOption ( 'memory-limit' ) ? : DaemonOptions :: NO_LIMIT ; $ timeLimit = $ input -> getOption ( 'time-limit' ) ? : DaemonOptions :: NO_LIMIT ; $ autoShutdown = $ input -> getOption ( 'auto-shutdown' ) ; return new DaemonOptions ( [ DaemonOptions :: LOGGER => $ logger , DaemonOptions :: REQUEST_LIMIT => $ requestLimit , DaemonOptions :: MEMORY_LIMIT => $ memoryLimit , DaemonOptions :: TIME_LIMIT => $ timeLimit , DaemonOptions :: AUTO_SHUTDOWN => $ autoShutdown , ] ) ; }
Creates a daemon configuration object from the Symfony command input and
output objects.

@param InputInterface  $input  The  Symfony command input
@param OutputInterface $output The Symfony command output

@return DaemonOptionsInterface The daemon configuration
Creates a daemon configuration object from the Symfony command input and output objects .