BedrockStreaming / DaemonBundle

Allows you to create daemonized commands. 😈

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read parameter only if it's available

t-geindre opened this issue · comments

Here: https://github.com/M6Web/DaemonBundle/blob/master/src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php#L510

The command try to read the m6web_daemon.iterations_events. But, if the bundle is not enabled in the Kernel, this parameter won't be available.

You can use DaemonCommand without enabling the bundle in the Kernel. It is only required if you want the command to trigger events each X iterations (should also be documented if it's not).

So, the command should check if m6web_daemon.iterations_events parameter is available before read it.