You are here

protected function ListCommand::lazyLoadItself in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand::lazyLoadItself()
  2. 8.2 webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand::lazyLoadItself()
  3. 4.x webprofiler/src/ProxyClass/Command/ListCommand.php \Drupal\webprofiler\ProxyClass\Command\ListCommand::lazyLoadItself()

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

webprofiler/src/ProxyClass/Command/ListCommand.php, line 61

Class

ListCommand
Provides a proxy class for \Drupal\webprofiler\Command\ListCommand.

Namespace

Drupal\webprofiler\ProxyClass\Command

Code

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