You are here

public function LightweightCronController::index in Scheduler 2.x

Same name and namespace in other branches
  1. 8 src/Controller/LightweightCronController.php \Drupal\scheduler\Controller\LightweightCronController::index()

Index.

Return value

\Symfony\Component\HttpFoundation\Response The http response.

1 string reference to 'LightweightCronController::index'
scheduler.routing.yml in ./scheduler.routing.yml
scheduler.routing.yml

File

src/Controller/LightweightCronController.php, line 50

Class

LightweightCronController
Controller for the lightweight cron.

Namespace

Drupal\scheduler\Controller

Code

public function index() {
  $this->schedulerManager
    ->runLightweightCron();
  return new Response('', Response::HTTP_NO_CONTENT);
}