summaryrefslogtreecommitdiffstats
path: root/core/modules/file/src/FileServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/file/src/FileServiceProvider.php')
-rw-r--r--core/modules/file/src/FileServiceProvider.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/core/modules/file/src/FileServiceProvider.php b/core/modules/file/src/FileServiceProvider.php
deleted file mode 100644
index a22750a..0000000
--- a/core/modules/file/src/FileServiceProvider.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-namespace Drupal\file;
-
-use Drupal\Core\DependencyInjection\ContainerBuilder;
-use Drupal\Core\DependencyInjection\ServiceModifierInterface;
-use Drupal\Core\StackMiddleware\NegotiationMiddleware;
-
-/**
- * Adds 'application/octet-stream' as a known (bin) format.
- */
-class FileServiceProvider implements ServiceModifierInterface {
-
- /**
- * {@inheritdoc}
- */
- public function alter(ContainerBuilder $container) {
- if ($container->has('http_middleware.negotiation') && is_a($container->getDefinition('http_middleware.negotiation')->getClass(), NegotiationMiddleware::class, TRUE)) {
- $container->getDefinition('http_middleware.negotiation')->addMethodCall('registerFormat', ['bin', ['application/octet-stream']]);
- }
- }
-
-}