You are here

class FilefieldSourcesServiceProvider in FileField Sources 8

Alter file.mime_type.guesser.extension service.

Hierarchy

Expanded class hierarchy of FilefieldSourcesServiceProvider

File

src/FilefieldSourcesServiceProvider.php, line 11

Namespace

Drupal\filefield_sources
View source
class FilefieldSourcesServiceProvider implements ServiceModifierInterface {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('file.mime_type.guesser.extension');
    $definition
      ->setClass('Drupal\\filefield_sources\\File\\MimeType\\ExtensionMimeTypeGuesser');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FilefieldSourcesServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter