You are here

protected function ExtensionMimeTypeGuesser::lazyLoadItself in FileField Sources 8

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

src/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php, line 61

Class

ExtensionMimeTypeGuesser
Provides a proxy class for \Drupal\filefield_sources\File\MimeType\ExtensionMimeTypeGuesser.

Namespace

Drupal\filefield_sources\ProxyClass\File\MimeType

Code

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