diff --git a/composer.json b/composer.json index fa6c5d8..5bc6bda 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,7 @@ "silverstripe/framework": "^4", "silverstripe/assets": "^1", "silverstripe/versioned": "^1", - "guzzlehttp/guzzle": "~6.3.0", - "symfony/event-dispatcher": "^2.6.0@stable", - "symfony/http-foundation": "^2.6.0" + "guzzlehttp/guzzle": "~6.3.0" }, "require-dev": { "squizlabs/php_codesniffer": "^3", diff --git a/src/Extractor/FileTextExtractor.php b/src/Extractor/FileTextExtractor.php index d098aad..6d99802 100644 --- a/src/Extractor/FileTextExtractor.php +++ b/src/Extractor/FileTextExtractor.php @@ -73,19 +73,6 @@ abstract class FileTextExtractor return Injector::inst()->get($class); } - /** - * Attempt to detect mime type for given file - * - * @param string $path - * @return string Mime type if found - */ - protected static function get_mime($path) - { - $file = new \Symfony\Component\HttpFoundation\File\File($path); - - return $file->getMimeType(); - } - /** * Given a File object, decide which extractor instance to use to handle it *