GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/system/src/ |
Upload File : |
<?php namespace Drupal\system; use Drupal\Core\Controller\ControllerBase; use Drupal\Core\CronInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Response; /** * Controller for Cron handling. */ class CronController extends ControllerBase { /** * The cron service. * * @var \Drupal\Core\CronInterface */ protected $cron; /** * Constructs a CronController object. * * @param \Drupal\Core\CronInterface $cron * The cron service. */ public function __construct(CronInterface $cron) { $this->cron = $cron; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container) { return new static($container->get('cron')); } /** * Run Cron once. * * @return \Symfony\Component\HttpFoundation\Response * A Symfony response object. */ public function run() { $this->cron->run(); // HTTP 204 is "No content", meaning "I did what you asked and we're done." return new Response('', 204); } /** * Run cron manually. * * @return \Symfony\Component\HttpFoundation\RedirectResponse * A Symfony direct response object. */ public function runManually() { if ($this->cron->run()) { drupal_set_message($this->t('Cron ran successfully.')); } else { drupal_set_message($this->t('Cron run failed.'), 'error'); } return $this->redirect('system.status'); } }