Merge pull request #46 from creative-commoners/pulls/3.0/remove-deps

Remove unused symfony dependencies and FileTextExtractor::get_mime
This commit is contained in:
Daniel Hensby 2018-07-04 10:28:06 +01:00 committed by GitHub
commit b20738573f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 16 deletions

View File

@ -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",

View File

@ -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
*