You are here

protected function SophronMimeTypeGuesser::lazyLoadItself in Sophron 8

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

sophron_guesser/src/ProxyClass/SophronMimeTypeGuesser.php, line 61

Class

SophronMimeTypeGuesser
Provides a proxy class for \Drupal\sophron_guesser\SophronMimeTypeGuesser.

Namespace

Drupal\sophron_guesser\ProxyClass

Code

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