diff --git a/core/modules/system/lib/Drupal/system/CronController.php b/core/modules/system/lib/Drupal/system/CronController.php index 1a7e50e..e295c50 100644 --- a/core/modules/system/lib/Drupal/system/CronController.php +++ b/core/modules/system/lib/Drupal/system/CronController.php @@ -7,7 +7,7 @@ namespace Drupal\system; -use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpFoundation\RedirectResponse; /** * Controller for Cron handling. @@ -17,14 +17,13 @@ class CronController { /** * Run Cron once. * - * @return Symfony\Component\HttpFoundation\Response - * A Symfony response object. + * @return Symfony\Component\HttpFoundation\RedirectResponse + * A Symfony direct response object. */ - public function run() { + public function runManually() { // @todo Make this an injected object. drupal_cron_run(); - // HTTP 204 is "No content", meaning "I did what you asked and we're done." - return new Response('', 204); + return new RedirectResponse('admin/reports/status', array('absolute' => TRUE)); } }