You are here

protected function UltimateCron::lazyLoadItself in Ultimate Cron 8.2

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

src/ProxyClass/UltimateCron.php, line 56

Class

UltimateCron
Provides a proxy class for \Drupal\ultimate_cron\UltimateCron.

Namespace

Drupal\ultimate_cron\ProxyClass

Code

protected function lazyLoadItself() {
  if (!isset($this->service)) {
    $this->service = $this->container
      ->get($this->drupalProxyOriginalServiceId);
  }
  return $this->service;
}