public function FilefieldSourcesServiceProvider::alter in FileField Sources 8
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceModifierInterface::alter
File
- src/
FilefieldSourcesServiceProvider.php, line 16
Class
- FilefieldSourcesServiceProvider
- Alter file.mime_type.guesser.extension service.
Namespace
Drupal\filefield_sourcesCode
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('file.mime_type.guesser.extension');
$definition
->setClass('Drupal\\filefield_sources\\File\\MimeType\\ExtensionMimeTypeGuesser');
}