Skip to content
Snippets Groups Projects
Commit 373da8fb authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Fix cron invocation from cron by specifying string parameter

Calling the cron module from cron in the adverstised way does
not add an output parameter explicitly. It defaulted to null
in the routing, however the controller does not accept null,
only string for third parameter so one would get a fatal error.
Fix it by setting a string as default.
parent 3e3e597e
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,4 @@ cron-croninfo:
defaults: { _controller: 'SimpleSAML\Module\cron\Controller\Cron::info' }
cron-run:
path: /run/{tag}/{key}/{output}
defaults: { _controller: 'SimpleSAML\Module\cron\Controller\Cron::run', output: null }
defaults: { _controller: 'SimpleSAML\Module\cron\Controller\Cron::run', output: 'silent' }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment