Skip to content
Snippets Groups Projects
Commit a946a535 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-5409: Adding support for empty key.

parent f3703bcd
No related branches found
No related tags found
1 merge request!229ISTWCMS-5409: Removing host from drush command, and using path instead that...
......@@ -219,8 +219,14 @@ class UwDrushCommands extends DrushCommands {
* - Return light weight cron url with key.
*/
public function getLightWeightCronUrl(): string {
$url = '';
$host = $this->request->getSchemeAndHttpHost();
return $host . '/scheduler/cron/' . $this->getLightWeightCronKey();
if ($key = $this->getLightWeightCronKey()) {
$url = $host . '/scheduler/cron/' . $key;
}
return $url;
}
}
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