Same filename in this branch
- 10 core/lib/Drupal/Core/Cron.php
- 10 core/lib/Drupal/Core/ProxyClass/Cron.php
Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/ProxyClass/Cron.php
- 9 core/lib/Drupal/Core/ProxyClass/Cron.php
Namespace
Drupal\Core\ProxyClass
File
core/lib/Drupal/Core/ProxyClass/Cron.php
View source
<?php
namespace Drupal\Core\ProxyClass;
class Cron implements \Drupal\Core\CronInterface {
use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
protected $drupalProxyOriginalServiceId;
protected $service;
protected $container;
public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id) {
$this->container = $container;
$this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
}
protected function lazyLoadItself() {
if (!isset($this->service)) {
$this->service = $this->container
->get($this->drupalProxyOriginalServiceId);
}
return $this->service;
}
public function run() {
return $this
->lazyLoadItself()
->run();
}
}
Classes
Name |
Description |
Cron |
Provides a proxy class for \Drupal\Core\Cron. |