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 guess($path) { return $this->lazyLoadItself()->guess($path); } /** * {@inheritdoc} */ public function addGuesser(\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $guesser, $priority = 0) { return $this->lazyLoadItself()->addGuesser($guesser, $priority); } /** * {@inheritdoc} */ public static function registerWithSymfonyGuesser(\Symfony\Component\DependencyInjection\ContainerInterface $container) { \Drupal\Core\File\MimeType\MimeTypeGuesser::registerWithSymfonyGuesser($container); } } }