container = $container; $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id; } /** * Lazy loads the real service from the container. * * @return object * Returns the constructed real service. */ protected function lazyLoadItself() { if (!isset($this->service)) { $this->service = $this->container->get($this->drupalProxyOriginalServiceId); } return $this->service; } /** * {@inheritdoc} */ public function convertMimeTypeToExtension($mimetype) { return $this->lazyLoadItself()->convertMimeTypeToExtension($mimetype); } /** * {@inheritdoc} */ public function convertMimeTypeToMostCommonExtension($mimetype) { return $this->lazyLoadItself()->convertMimeTypeToMostCommonExtension($mimetype); } /** * {@inheritdoc} */ public function guess($path) { return $this->lazyLoadItself()->guess($path); } /** * {@inheritdoc} */ public function setMapping(array $mapping = NULL) { return $this->lazyLoadItself()->setMapping($mapping); } } }